88 CARGO_INCREMENTAL : 0
99permissions :
1010 contents : write
11-
1211jobs :
1312 release :
1413 name : ${{ matrix.target }}
@@ -27,93 +26,79 @@ jobs:
2726 - os : ubuntu-latest
2827 target : aarch64-unknown-linux-musl
2928 deb : true
30-
3129 - os : macos-11
3230 target : x86_64-apple-darwin
3331 - os : macos-11
3432 target : aarch64-apple-darwin
35-
3633 - os : windows-latest
3734 target : x86_64-pc-windows-msvc
3835 - os : windows-latest
3936 target : aarch64-pc-windows-msvc
4037 steps :
4138 - name : Checkout repository
42- uses : actions/checkout@dc323e67f16fb5f7663d20ff7941f27f5809e9b6 # v2.6.0
39+ uses : actions/checkout@v3
4340 with :
4441 fetch-depth : 0
45-
4642 - name : Get version
4743 id : get_version
48- uses : SebRollen/toml-action@2bd04b06a3ebc3e6a3eb6060de115710cad16cd6 # v1.0.2
44+ 4945 with :
5046 file : Cargo.toml
5147 field : package.version
52-
5348 - name : Install Rust
54- uses : actions-rs/toolchain@16499b5e05bf2e26879000db0c1d13f7e13fa3af # v1.0.7
49+ uses : actions-rs/toolchain@v1
5550 with :
5651 toolchain : stable
5752 profile : minimal
5853 override : true
5954 target : ${{ matrix.target }}
60-
6155 - name : Setup cache
62- uses : Swatinem/rust-cache@81d053bdb0871dcd3f10763c8cc60d0adc41762b # v1
56+ uses : Swatinem/rust-cache@v2.4.0
6357 with :
6458 key : ${{ matrix.target }}
65-
6659 - name : Build binary
67- uses : actions-rs/cargo@844f36862e911db73fe0815f00a4a2602c279505 # v1.0.3
60+ uses : actions-rs/cargo@v1
6861 with :
6962 command : build
7063 args : --release --locked --target=${{ matrix.target }} --color=always --verbose
7164 use-cross : ${{ runner.os == 'Linux' }}
72-
7365 - name : Install cargo-deb
7466 if : ${{ matrix.deb == true }}
75- uses : actions-rs/install@9da1d2adcfe5e7c16992e8242ca33a56b6d9b101 # v0.1.2
67+ uses :
actions-rs/[email protected] 7668 with :
7769 crate : cargo-deb
78-
7970 - name : Build deb
8071 if : ${{ matrix.deb == true }}
81- uses : actions-rs/cargo@844f36862e911db73fe0815f00a4a2602c279505 # v1.0.3
72+ uses : actions-rs/cargo@v1
8273 with :
8374 command : deb
8475 args : --no-build --no-strip --output=. --target=${{ matrix.target }}
85-
8676 - name : Package (*nix)
8777 if : runner.os != 'Windows'
88- run : >
89- tar -cv
90- CHANGELOG.md LICENSE README.md
91- man/
92- -C contrib/ completions/ -C ../
93- -C target/${{ matrix.target }}/release/ zoxide
94- | gzip --best
95- > 'zoxide-${{ steps.get_version.outputs.value }}-${{ matrix.target }}.tar.gz'
78+ run : |
79+ tar -cv CHANGELOG.md LICENSE README.md man/ \
80+ -C contrib/ completions/ -C ../ \
81+ -C target/${{ matrix.target }}/release/ zoxide |
82+ gzip --best > \
83+ zoxide-${{ steps.get_version.outputs.value }}-${{ matrix.target }}.tar.gz
9684 - name : Package (Windows)
9785 if : runner.os == 'Windows'
98- run : >
99- 7z a 'zoxide-${{ steps.get_version.outputs.value }}-${{ matrix.target }}.zip'
100- CHANGELOG.md LICENSE README.md
101- ./man/
102- ./contrib/completions/
103- ./target/${{ matrix.target }}/release/zoxide.exe
104-
86+ run : |
87+ 7z a zoxide-${{ steps.get_version.outputs.value }}-${{ matrix.target }}.zip `
88+ CHANGELOG.md LICENSE README.md ./man/ ./contrib/completions/ `
89+ ./target/${{ matrix.target }}/release/zoxide.exe
10590 - name : Upload artifact
106- uses : actions/upload-artifact@82c141cc518b40d92cc801eee768e7aafc9c2fa2 # v2.3.1
91+ uses : actions/upload-artifact@v3
10792 with :
10893 name : ${{ matrix.target }}
10994 path : |
11095 *.deb
11196 *.tar.gz
11297 *.zip
113-
11498 - name : Create release
115- if : ${{ github.ref == 'refs/heads/main' && startsWith(github.event.head_commit.message, 'chore(release)') }}
116- uses : softprops/action-gh-release@de2c0eb89ae2a093876385947365aca7b0e5f844 # v1
99+ if : |
100+ ${{ github.ref == 'refs/heads/main' && startsWith(github.event.head_commit.message, 'chore(release)') }}
101+ uses : softprops/action-gh-release@v1
117102 with :
118103 draft : true
119104 files : |
0 commit comments