Skip to content

Commit 3a27c32

Browse files
committed
up
1 parent 5b1fa48 commit 3a27c32

File tree

1 file changed

+8
-1
lines changed

1 file changed

+8
-1
lines changed

.github/workflows/build.yml

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,6 +40,13 @@ jobs:
4040
sudo apt-get update
4141
sudo apt-get --no-install-recommends -y install \
4242
binutils build-essential libcap-dev libseccomp-dev make qemu-user-static xz-utils
43+
- name: build source code
44+
run: |
45+
cd build
46+
git clone --depth 1 https://github.com/moe-hacker/ruri.git
47+
cd ruri
48+
cc -Wl,--gc-sections -static src/*.c src/easteregg/*.c -o ruri -lcap -lseccomp -lpthread
49+
sudo cp ./ruri /usr/bin/ruri
4350
- name: download latest minirootfs
4451
env:
4552
URL: https://dl-cdn.alpinelinux.org/alpine/edge/releases
@@ -72,7 +79,7 @@ jobs:
7279
tar -cvf /$(uname -m).tar rurima-aio
7380
EOF
7481
sudo chmod +x alpine/build.sh
75-
sudo ../ruri -a aarch64 -q /usr/bin/qemu-aarch64-static ./alpine /bin/sh /build.sh
82+
sudo ruri -a aarch64 -q /usr/bin/qemu-aarch64-static ./alpine /bin/sh /build.sh
7683
sudo mv alpine/aarch64.tar ./aarch64.tar
7784
- name: Release
7885
uses: softprops/action-gh-release@v2

0 commit comments

Comments
 (0)