Skip to content

Commit

Permalink
update GitHub Actions
Browse files Browse the repository at this point in the history
  • Loading branch information
nikolat committed Mar 31, 2024
1 parent d6fc737 commit 9fa2550
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 19 deletions.
15 changes: 6 additions & 9 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,10 +7,10 @@ jobs:
runs-on: windows-latest
steps:
- name: Checkout
uses: actions/checkout@v3
uses: actions/checkout@v4

- name: Setup cache
uses: actions/cache@v3
uses: actions/cache@v4
with:
path: |
~/.cargo/bin/
Expand All @@ -21,17 +21,14 @@ jobs:
key: ${{ runner.os }}-cargo-${{ hashFiles('**/Cargo.lock') }}

- name: Setup toolchain
uses: actions-rs/toolchain@v1
uses: dtolnay/rust-toolchain@stable
with:
toolchain: stable
target: i686-pc-windows-msvc
targets: i686-pc-windows-msvc
components: rustfmt, clippy

- name: Build
uses: actions-rs/cargo@v1
with:
command: build
args: --release --target=i686-pc-windows-msvc
run: cargo build --release --target=i686-pc-windows-msvc

- name: Prepare for upload
run: |
Expand All @@ -42,7 +39,7 @@ jobs:
copy LICENSE artifact/saori-qrcode/LICENSE
- name: Upload artifact
uses: actions/upload-artifact@v3
uses: actions/upload-artifact@v4
with:
name: saori-qrcode
path: artifact/
16 changes: 6 additions & 10 deletions .github/workflows/check_and_test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,10 +9,10 @@ jobs:
runs-on: windows-latest
steps:
- name: Checkout
uses: actions/checkout@v3
uses: actions/checkout@v4

- name: Setup cache
uses: actions/cache@v3
uses: actions/cache@v4
with:
path: |
~/.cargo/bin/
Expand All @@ -23,18 +23,14 @@ jobs:
key: ${{ runner.os }}-cargo-${{ hashFiles('**/Cargo.lock') }}

- name: Setup toolchain
uses: actions-rs/toolchain@v1
uses: dtolnay/rust-toolchain@stable
with:
toolchain: stable
target: i686-pc-windows-msvc
targets: i686-pc-windows-msvc
components: rustfmt, clippy

- name: Check
uses: actions-rs/cargo@v1
with:
command: check
run: cargo check

- name: Test
uses: actions-rs/cargo@v1
with:
command: test
run: cargo test

0 comments on commit 9fa2550

Please sign in to comment.