File tree 5 files changed +20
-16
lines changed
5 files changed +20
-16
lines changed Original file line number Diff line number Diff line change 25
25
steps :
26
26
# First, we check out the repository's code using the Github Actions' "Checkout" tool.
27
27
- name : Checkout code
28
- uses : actions/checkout@v3
28
+ uses : actions/checkout@v4
29
29
with :
30
30
submodules : ' recursive'
31
31
59
59
sudo chown root:root /usr/bin/tar && sudo chmod u+s /usr/bin/tar
60
60
- name : Cache protobuf-c
61
61
id : cache-protobuf-c
62
- uses : actions/cache@v3 # Uses the Github Actions' "Cache" tool
62
+ uses : actions/cache@v4 # Uses the Github Actions' "Cache" tool
63
63
with :
64
64
# These are the files we cache
65
65
path : |
74
74
run : |
75
75
sudo chown runner:runner /usr/bin/tar && sudo chmod u+x /usr/bin/tar
76
76
77
+ # Before we build Runtime, we check the formatting
78
+ - name : Debug
79
+ run : |
80
+ ls
81
+ pwd
82
+ - name : Format
83
+ run : |
84
+ ./runtime format check
85
+
77
86
# This if statement determine whether the cache lookup was a hit (true) or miss (not true--idk, false doesn't work)
78
87
# If the cache lookup hit, we just run "sudo ldconfig" to tell the linker where to look for
79
88
# protobuf-c files. If the cache lookup missed, we have to install protobuf-c from scratch
89
98
tar -xzf protobuf-c-1.4.1.tar.gz
90
99
cd protobuf-c-1.4.1 && ./configure && make && sudo make install && sudo ldconfig
91
100
92
- # Before we build Runtime, we check the formatting
93
- - name : Format
94
- run : |
95
- ./runtime format check
96
-
97
101
# Now that we are done installing Runtime's dependencies, we build Runtime
98
102
- name : Build
99
103
run : |
Original file line number Diff line number Diff line change @@ -4,10 +4,10 @@ After=net_handler.service
4
4
5
5
[Service]
6
6
Type =simple
7
- User =pi
8
- WorkingDirectory =/home/pi /runtime/systemd/
7
+ User =ubuntu
8
+ WorkingDirectory =/home/ubuntu /runtime/systemd/
9
9
ExecStartPre =/bin/sleep 1
10
- ExecStart =/home/pi /runtime/systemd/ngrok.sh
10
+ ExecStart =/home/ubuntu /runtime/systemd/ngrok.sh
11
11
ExecReload =/bin/kill -SIGINT $MAINPID
12
12
13
13
[Install]
Original file line number Diff line number Diff line change 1
1
#! /bin/bash
2
2
3
3
function sigint_handler {
4
- pkill -u pi /home/pi /ngrok
4
+ pkill -u ubuntu /home/ubuntu /ngrok
5
5
}
6
6
7
7
trap ' sigint_handler' INT
8
8
9
- nohup /home/pi /ngrok start --all --config /home/pi /runtime/systemd/ngrok.yml > /dev/null
9
+ nohup /home/ubuntu /ngrok start --all --config /home/ubuntu /runtime/systemd/ngrok.yml > /dev/null
Original file line number Diff line number Diff line change @@ -3,8 +3,8 @@ Description=Serves a webpage that displays the ngrok tunnel IP addresses.
3
3
4
4
[Service]
5
5
Type =simple
6
- User =pi
7
- WorkingDirectory =/home/pi /runtime/systemd/
6
+ User =ubuntu
7
+ WorkingDirectory =/home/ubuntu /runtime/systemd/
8
8
ExecStart =python3 ngrok_displayer.py
9
9
ExecReload =/bin/kill -SIGINT $MAINPID
10
10
Original file line number Diff line number Diff line change @@ -4,8 +4,8 @@ Description=Sets the time on this raspberry pi when on CalVisitor
4
4
[Service]
5
5
Type =oneshot
6
6
User =root
7
- WorkingDirectory =/home/pi
8
- ExecStart =/home/pi /runtime/systemd/set_time.sh
7
+ WorkingDirectory =/home/ubuntu
8
+ ExecStart =/home/ubuntu /runtime/systemd/set_time.sh
9
9
KillSignal =SIGINT
10
10
11
11
[Install]
You can’t perform that action at this time.
0 commit comments