Skip to content

Commit 4b2ca84

Browse files
authored
feature/latest (#214)
2 parents 8c3d364 + 09ed85d commit 4b2ca84

File tree

4 files changed

+40
-79
lines changed

4 files changed

+40
-79
lines changed

.github/workflows/check.yaml

Lines changed: 0 additions & 45 deletions
This file was deleted.

.github/workflows/docs.yaml

Lines changed: 10 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -15,19 +15,24 @@ jobs:
1515
runs-on: ubuntu-latest
1616
steps:
1717
- name: Checkout
18-
uses: actions/checkout@v5
19-
- uses: actions-rs/toolchain@v1
18+
uses: actions/checkout@main
19+
- name: Cache
20+
uses: actions/cache@main
2021
with:
21-
toolchain: stable
22+
path: |
23+
~/.cargo/registry
24+
~/.cargo/git
25+
target
26+
key: ${{ runner.os }}-cargo-${{ hashFiles('**/Cargo.lock') }}
2227
- name: Create docs
2328
run: |
2429
cargo clean --doc
2530
cargo doc --all --no-deps
2631
mv target/doc/mod_installer target/doc/rust_docs
2732
- name: Upload artifact
28-
uses: actions/upload-pages-artifact@v4
33+
uses: actions/upload-pages-artifact@main
2934
with:
3035
path: target/doc
3136
- name: Deploy to GitHub Pages
3237
id: deployment
33-
uses: actions/deploy-pages@v4
38+
uses: actions/deploy-pages@main

.github/workflows/main.yaml

Lines changed: 21 additions & 23 deletions
Original file line numberDiff line numberDiff line change
@@ -6,24 +6,18 @@ on:
66
tags:
77
- "*"
88
pull_request:
9-
concurrency:
10-
group: ${{ github.ref }}-${{ github.workflow }}
11-
cancel-in-progress: true
129
env:
1310
CARGO_TERM_COLOR: always
1411
jobs:
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
@@ -87,7 +85,7 @@ jobs:
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 }}

.github/workflows/safety.yml

Lines changed: 9 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,7 @@
11
permissions:
22
contents: read
33
on:
4-
push:
5-
branches: [main]
64
pull_request:
7-
concurrency:
8-
group: ${{ github.ref }}-${{ github.workflow }}
9-
cancel-in-progress: true
105
env:
116
CARGO_TERM_COLOR: always
127
name: safety
@@ -15,7 +10,15 @@ jobs:
1510
name: "Miri"
1611
runs-on: ubuntu-latest
1712
steps:
18-
- uses: actions/checkout@v5
13+
- uses: actions/checkout@main
14+
- name: Cache
15+
uses: actions/cache@main
16+
with:
17+
path: |
18+
~/.cargo/registry
19+
~/.cargo/git
20+
target
21+
key: ${{ runner.os }}-cargo-${{ hashFiles('**/Cargo.lock') }}
1922
- name: Install Miri
2023
run: |
2124
rustup toolchain install nightly --component miri

0 commit comments

Comments
 (0)