diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 439f331..9f64aa7 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -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 diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 259ed31..84c13af 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -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: | @@ -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: diff --git a/rttys.service b/rttys.service new file mode 100644 index 0000000..4a6f917 --- /dev/null +++ b/rttys.service @@ -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