66 tags :
77 - " *"
88 pull_request :
9- concurrency :
10- group : ${{ github.ref }}-${{ github.workflow }}
11- cancel-in-progress : true
129env :
1310 CARGO_TERM_COLOR : always
1411jobs :
1512 pre-commit :
1613 runs-on : ubuntu-latest
1714 steps :
18- - uses : actions/checkout@v5
15+ - uses : actions/checkout@main
1916 with :
2017 set-safe-directory : true
2118 fetch-depth : 0
22- - uses : actions/setup-python@v6
23- - uses : actions-rs/toolchain@v1
24- with :
25- toolchain : stable
26- -
uses :
pre-commit/[email protected] 19+ - uses : actions/setup-python@main
20+ - uses : pre-commit/action@main
2721 build :
2822 runs-on : ${{ matrix.os }}
2923 strategy :
@@ -39,24 +33,28 @@ jobs:
3933 target : x86_64-pc-windows-msvc
4034 suffix : .exe
4135 steps :
42- - uses : actions/checkout@v5
43- - uses : actions-rs/toolchain@v1
44- with :
45- toolchain : stable
46- - uses : actions-rs/cargo@v1
36+ - uses : actions/checkout@main
37+ - name : Cache
38+ uses : actions/cache@main
4739 with :
48- command : build
49- args : --release
40+ path : |
41+ ~/.cargo/registry
42+ ~/.cargo/git
43+ target
44+ key : ${{ runner.os }}-cargo-${{ hashFiles('**/Cargo.lock') }}
45+ - name : build
46+ run : |
47+ cargo build --release
5048 - name : Archive release artifacts
51- uses : actions/upload-artifact@v4
49+ uses : actions/upload-artifact@main
5250 with :
5351 name : mod_installer-${{ matrix.target }}${{ matrix.suffix }}
5452 path : ./target/release/mod_installer${{ matrix.suffix }}
5553 build-nix :
5654 runs-on : ubuntu-latest
5755 steps :
58- - uses : actions/checkout@v5
59- - uses : cachix/install-nix-action@v31
56+ - uses : actions/checkout@main
57+ - uses : cachix/install-nix-action@master
6058 with :
6159 nix_path : nixpkgs=channel:nixos-25.05
6260 - run : nix build -f default.nix
@@ -69,11 +67,11 @@ jobs:
6967 tag_name : ${{ steps.get_tag.outputs.git_tag }}
7068 steps :
7169 - name : Checkout
72- uses : actions/checkout@v5
70+ uses : actions/checkout@main
7371 with :
7472 fetch-depth : 0
7573 - name : Generate a changelog
76- uses : orhun/git-cliff-action@v4.4.2
74+ uses : orhun/git-cliff-action@main
7775 id : git-cliff
7876 with :
7977 config : cliff.toml
8785 run : echo ::set-output name=git_tag::${GITHUB_REF/refs\/tags\//}
8886 - name : Create Release
8987 id : create_release
90- uses : ncipollo/release-action@v1.20.0
88+ uses : ncipollo/release-action@main
9189 with :
9290 bodyFile : ./CHANGELOG.md
9391 prerelease : ${{ startsWith(steps.get_tag.outputs.git_tag, 'nightly') }}
@@ -108,7 +106,7 @@ jobs:
108106 suffix : .exe
109107 if : github.event_name == 'push' && startsWith(github.ref, 'refs/tags/')
110108 steps :
111- - uses : actions/download-artifact@v5
109+ - uses : actions/download-artifact@main
112110 with :
113111 name : mod_installer-${{ matrix.target }}${{ matrix.suffix }}
114112 - name : Upload Release Asset - ${{ matrix.os }}
0 commit comments