@@ -18,23 +18,21 @@ jobs:
1818
1919 build :
2020 name : Build and release
21- runs-on : ${{ matrix.os }}
21+ runs-on : macos-latest
2222 needs : test
2323
2424 strategy :
2525 matrix :
2626 include :
27- - build : linux
28- os : ubuntu-latest
29- target : x86_64-unknown-linux-musl
30-
31- - build : macos
32- os : macos-latest
27+ - build : macos-x86_64
3328 target : x86_64-apple-darwin
3429
30+ - build : macos-aarch64
31+ target : aarch64-apple-darwin
32+
3533 steps :
3634 - name : Checkout
37- uses : actions/checkout@v4
35+ uses : actions/checkout@v5
3836
3937 - name : Get the release version from the tag
4038 run : echo "VERSION=${GITHUB_REF#refs/tags/}" >> $GITHUB_ENV
@@ -44,38 +42,34 @@ jobs:
4442 with :
4543 targets : ${{ matrix.target }}
4644
47- - run : sudo apt -y install musl-dev musl-tools
48- if : matrix.build == 'linux'
49-
5045 - name : Build
5146 run : cargo build --release --locked --target ${{ matrix.target }}
5247
5348 - name : Build archive
5449 shell : bash
5550 run : |
5651 binary_name="killswitch"
57-
5852 dirname="$binary_name-${{ env.VERSION }}-${{ matrix.target }}"
5953 mkdir "$dirname"
60- mv "target/${{ matrix.target }}/release/$binary_name" "$dirname"
61- tar -czf "$dirname.tar.gz" "$dirname"
62- echo "ASSET=$dirname.tar.gz" >> $GITHUB_ENV
54+ mv "target/${{ matrix.target }}/release/$binary_name" "$dirname"
55+ tar -czf "$dirname.tar.gz" "$dirname"
56+ echo "ASSET=$dirname.tar.gz" >> $GITHUB_ENV
6357
6458 - name : Release
6559 if : startsWith(github.ref, 'refs/tags/')
66- uses : softprops/action-gh-release@v1
60+ uses : softprops/action-gh-release@v2
6761 with :
6862 files : |-
6963 ${{ env.ASSET }}
7064
7165 publish :
7266 name : Publish
73- runs-on : ubuntu -latest
67+ runs-on : macos -latest
7468 needs :
7569 - build
7670 steps :
7771 - name : Checkout sources
78- uses : actions/checkout@v4
72+ uses : actions/checkout@v5
7973
8074 - name : Install Rust
8175 uses : dtolnay/rust-toolchain@stable
9387 - name : bump-homebrew-formula
9488 uses : mislav/bump-homebrew-formula-action@v3.1
9589 with :
96- # A PR will be sent to github.com/Homebrew/homebrew-core to update this formula:
9790 formula-name : killswitch
9891 env :
9992 COMMITTER_TOKEN : ${{ secrets.COMMITTER_TOKEN }}
0 commit comments