Skip to content
This repository has been archived by the owner on Jan 10, 2025. It is now read-only.

Commit

Permalink
Update rust.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
jamesatomc authored Dec 28, 2024
1 parent a894752 commit 6f0fa2d
Showing 1 changed file with 20 additions and 4 deletions.
24 changes: 20 additions & 4 deletions .github/workflows/rust.yml
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
To modify the GitHub Actions workflow to build the Rust project for Windows, you can add a new job that runs on a Windows runner (`windows-latest`). Here is an updated version of your workflow file:

```yaml
name: Rust
on:
Expand All @@ -10,13 +13,26 @@ env:
CARGO_TERM_COLOR: always
jobs:
build:

build-linux:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Build
run: cargo build --verbose
- name: Run tests
run: cargo test --verbose
# - name: Run tests
# run: cargo test --verbose
build-windows:
runs-on: windows-latest
steps:
- uses: actions/checkout@v4
- name: Install Rust
run: rustup install stable-x86_64-pc-windows-msvc
- name: Set up Rust toolchain
run: rustup default stable-x86_64-pc-windows-msvc
- name: Build
run: cargo build --verbose
# - name: Run tests
# run: cargo test --verbose

0 comments on commit 6f0fa2d

Please sign in to comment.