Skip to content

Commit

Permalink
Merge pull request #198 from TheComputerGuy96/ci-changes
Browse files Browse the repository at this point in the history
CI changes/improvements
  • Loading branch information
louis-e authored Jan 6, 2025
2 parents 8e2ad72 + 704249b commit bad6c6d
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 6 deletions.
5 changes: 3 additions & 2 deletions .github/workflows/ci-build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@ on:
push:
branches:
- main
workflow_dispatch:

jobs:
build:
Expand All @@ -21,10 +22,10 @@ jobs:
uses: actions/checkout@v3

- name: Set up Rust
uses: actions-rs/toolchain@v1
uses: dtolnay/rust-toolchain@v1
with:
toolchain: stable
target: ${{ matrix.os == 'windows-latest' && 'x86_64-pc-windows-msvc' || 'x86_64-unknown-linux-gnu' || 'x86_64-apple-darwin' }}
targets: ${{ matrix.os == 'windows-latest' && 'x86_64-pc-windows-msvc' || 'x86_64-unknown-linux-gnu' || 'x86_64-apple-darwin' }}
components: clippy

- name: Check formatting
Expand Down
8 changes: 4 additions & 4 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,16 +13,16 @@ jobs:
uses: actions/checkout@v3

- name: Set up Rust for Windows
uses: actions-rs/toolchain@v1
uses: dtolnay/rust-toolchain@v1
with:
toolchain: stable
target: x86_64-pc-windows-msvc
targets: x86_64-pc-windows-msvc

- name: Install dependencies
run: cargo fetch
run: cargo fetch --locked

- name: Build
run: cargo build --release
run: cargo build --frozen --release

- name: Upload artifact (Windows)
uses: actions/upload-artifact@v3
Expand Down

0 comments on commit bad6c6d

Please sign in to comment.