Skip to content

Commit

Permalink
ci: add arm64
Browse files Browse the repository at this point in the history
Signed-off-by: Jianhui Zhao <zhaojh329@gmail.com>
  • Loading branch information
zhaojh329 committed May 2, 2022
1 parent 53d7676 commit 5122e4c
Show file tree
Hide file tree
Showing 3 changed files with 27 additions and 9 deletions.
10 changes: 5 additions & 5 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,15 +5,15 @@ jobs:
runs-on: ubuntu-20.04
strategy:
matrix:
target: [ linux.amd64 ]
target: [ linux.amd64, linux.arm64 ]
steps:
- uses: actions/checkout@v2
- uses: actions/checkout@v3
with:
submodules: true
- uses: actions/setup-go@v2
- uses: actions/setup-go@v3
with:
go-version: 1.17.1
- uses: actions/setup-node@v2
go-version: 1.18.1
- uses: actions/setup-node@v3
with:
node-version: '12'
- name: ui
Expand Down
16 changes: 12 additions & 4 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,18 +10,18 @@ jobs:
runs-on: ubuntu-20.04

steps:
- uses: actions/setup-go@v2
- uses: actions/setup-go@v3
with:
go-version: 1.17.1
go-version: 1.18.1

- uses: actions/setup-node@v2
- uses: actions/setup-node@v3
with:
node-version: '12'

- id: get-version
uses: battila7/get-version-action@v2

- uses: actions/checkout@v2
- uses: actions/checkout@v3

- id: build
run: |
Expand All @@ -33,8 +33,16 @@ jobs:
version=${{ steps.get-version.outputs.version-without-v }}
./build.sh linux amd64
./build.sh linux arm64
cp rttys.conf rttys.service rttys-linux-amd64
cp rttys.conf rttys.service rttys-linux-arm64
mv rttys-linux-amd64 rttys-linux-amd64-$version
mv rttys-linux-arm64 rttys-linux-arm64-$version
tar zcf rttys-linux-amd64-$version.tar.gz rttys-linux-amd64-$version
tar zcf rttys-linux-arm64-$version.tar.gz rttys-linux-arm64-$version
- uses: marvinpinto/action-automatic-releases@latest
with:
Expand Down
10 changes: 10 additions & 0 deletions rttys.service
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
[Unit]
Description=rttys
After=network.target

[Service]
ExecStart=/usr/local/bin/rttys run -c /etc/rttys/rttys.conf
TimeoutStopSec=5s

[Install]
WantedBy=multi-user.target

0 comments on commit 5122e4c

Please sign in to comment.