@@ -86,28 +86,22 @@ jobs:
8686
8787 # 3) Install Rust toolchain
8888 - name : Install Rust toolchain
89- uses : actions-rs/ toolchain@v1
89+ uses : dtolnay/rust- toolchain@stable
9090 with :
91- profile : minimal
92- toolchain : stable
93- override : true
91+ targets : ${{ matrix.target }}
9492
95- # 4) Add target architecture
96- - name : Add target architecture
97- run : rustup target add ${{ matrix.target }}
98-
99- # 5) Install musl tools only for aarch64 musl builds
93+ # 4) Install musl tools only for aarch64 musl builds
10094 - name : Install musl tools (Linux musl only)
10195 if : contains(matrix.target, 'musl')
10296 run : |
10397 sudo apt update
10498 sudo apt install -y musl-tools
10599
106- # 6 ) Build the release binary
100+ # 5 ) Build the release binary
107101 - name : Build release binary
108102 run : cargo build --release --target ${{ matrix.target }} --locked
109103
110- # 7 ) macOS code signing
104+ # 6 ) macOS code signing
111105 - name : Import Distribution certificate
112106 if : runner.os == 'macOS'
113107 uses : apple-actions/import-codesign-certs@v3
@@ -122,7 +116,7 @@ jobs:
122116 codesign --force --timestamp --options runtime \
123117 --sign "Distribution" "$BIN"
124118
125- # 8 ) Package binaries
119+ # 7 ) Package binaries
126120 - name : Package Linux binary (tar.gz)
127121 if : runner.os == 'Linux'
128122 run : |
@@ -142,7 +136,7 @@ jobs:
142136 cp docs/man/bssh.1 package/
143137 ditto -c -k --sequesterRsrc package "$ASSET"
144138
145- # 9 ) Generate checksum
139+ # 8 ) Generate checksum
146140 - name : Generate checksum
147141 run : |
148142 FILE="${{ matrix.asset_name }}${{ matrix.archive_ext }}"
@@ -152,7 +146,7 @@ jobs:
152146 shasum -a 256 "$FILE" > "$FILE.sha256"
153147 fi
154148
155- # 11 ) Upload release artifacts and checksum
149+ # 9 ) Upload release artifacts and checksum
156150 - name : Upload release artifacts
157151 if : github.event_name == 'release' || github.event_name == 'workflow_dispatch'
158152 uses : softprops/action-gh-release@v2
0 commit comments