@@ -10,30 +10,30 @@ concurrency:
1010
1111jobs :
1212 build-release :
13- name : build-release ${{ matrix.os }} ${{ matrix.rust }} ${{ matrix.target }}
13+ name : build-release ${{ matrix.build }}
1414 runs-on : ${{ matrix.os }}
15- timeout-minutes : 5
15+ timeout-minutes : 30
1616 strategy :
1717 matrix :
1818 include :
1919 - build : linux
20- os : ubuntu-20 .04
20+ os : ubuntu-22 .04
2121 rust : stable
2222 target : x86_64-unknown-linux-musl
2323 - build : macos
2424 os : macos-latest
2525 rust : stable
26- target : x86_64-apple-darwin
26+ target : x86_64-apple-darwin # cross-compiled on the arm64 runner
2727 - build : macos-arm64
2828 os : macos-latest
2929 rust : stable
30- target : aarch64-apple-darwin
30+ target : aarch64-apple-darwin # native on the arm64 runner
3131 env :
3232 RUST_BACKTRACE : full
3333 TARGET_DIR : ./target
3434 steps :
3535 - name : Checkout repository
36- uses : actions/checkout@v2
36+ uses : actions/checkout@v4
3737
3838 - name : Determine version changes
3939 id : version_check
@@ -56,18 +56,16 @@ jobs:
5656 fi
5757
5858 - name : Install packages (Ubuntu)
59- if : steps.version_check.outputs.version_changed == 'true' && matrix.os == 'ubuntu-20 .04'
59+ if : steps.version_check.outputs.version_changed == 'true' && matrix.os == 'ubuntu-22 .04'
6060 run : |
6161 sudo apt-get update
6262 sudo apt-get install -y musl-tools
6363
6464 - name : Install Rust
6565 if : steps.version_check.outputs.version_changed == 'true'
66- uses : actions-rs/ toolchain@v1
66+ uses : dtolnay/rust- toolchain@master
6767 with :
6868 toolchain : ${{ matrix.rust }}
69- profile : minimal
70- override : true
7169
7270 - name : Build and Package
7371 if : steps.version_check.outputs.version_changed == 'true'
0 commit comments