Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Run tests on GitHub Actions with macos runner #39

Merged
merged 7 commits into from
Jan 28, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
31 changes: 31 additions & 0 deletions .github/workflows/rust.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,9 @@ jobs:
with:
repo-token: ${{ secrets.GITHUB_TOKEN }}
- uses: actions/checkout@v3
- uses: Swatinem/rust-cache@v2
with:
prefix-key: "check-linux"
- name: Check cargo fmt compliance
run: cargo fmt --all -- --check
- name: Check no rustc warnings
Expand All @@ -31,3 +34,31 @@ jobs:
# # Tests currently fail with `MakeWgpuAdapterError`
# - name: Run tests
# run: cargo test --verbose

test-rs-macos:
runs-on: macos-latest
env:
RUSTFLAGS: "-D warnings"
steps:
- name: Install Protoc
uses: arduino/setup-protoc@v2
with:
repo-token: ${{ secrets.GITHUB_TOKEN }}
- uses: actions/checkout@v3
- name: Install latest stable toolchain
uses: actions-rs/toolchain@v1
with:
toolchain: stable
override: true
- uses: Swatinem/rust-cache@v2
with:
prefix-key: "test-macos"
- name: version
run: rustc --version
- name: test
run: cd sg2d-wgpu/ && cargo test -- --nocapture
- name: Update images
uses: actions/upload-artifact@v4
with:
name: images-macos
path: sg2d-wgpu/tests/output
Loading