Skip to content

Commit

Permalink
ci
Browse files Browse the repository at this point in the history
  • Loading branch information
nyurik committed Jan 29, 2025
1 parent bc7ab82 commit a9bcd8c
Show file tree
Hide file tree
Showing 2 changed files with 55 additions and 2 deletions.
11 changes: 9 additions & 2 deletions .github/workflows/rust-ci.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -9,13 +9,20 @@ on:

defaults:
run:
shell: bash
working-directory: rustutils/

jobs:
test:
name: Rust tests
runs-on: ubuntu-latest
runs-on: ${{ matrix.os }}
strategy:
fail-fast: true
matrix:
include:
- os: macos-latest # M-series CPU
- os: macos-13 # x64 CPU
- os: windows-latest
- os: ubuntu-latest
steps:
- uses: taiki-e/install-action@v2
with: { tool: just }
Expand Down
46 changes: 46 additions & 0 deletions .github/workflows/rust-platform-ci.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,46 @@
name: rust-platform-ci

on:
push:
branches: [ main ]
pull_request:
branches: [ main ]
workflow_dispatch:

defaults:
run:
working-directory: platform/rust/

jobs:
test:
name: Rust tests
runs-on: ${{ matrix.os }}
strategy:
fail-fast: true
matrix:
include:
- os: macos-latest # M-series CPU
- os: macos-13 # x64 CPU
- os: windows-latest
- os: ubuntu-latest
steps:
- uses: taiki-e/install-action@v2
with: { tool: just }
- uses: actions/checkout@v4
- run: just -v ci-test

msrv:
name: Rust tests MSRV (Minimal Supported Rust Version)
runs-on: ubuntu-latest
steps:
- uses: taiki-e/install-action@v2
with: { tool: just }
- uses: actions/checkout@v4
- name: Read crate metadata
id: metadata
run: echo "rust-version=$(sed -ne 's/rust-version *= *\"\(.*\)\"/\1/p' Cargo.toml)" >> "$GITHUB_OUTPUT"
- name: Install Rust
uses: dtolnay/rust-toolchain@stable
with:
toolchain: ${{ steps.metadata.outputs.rust-version }}
- run: just ci-test-msrv

0 comments on commit a9bcd8c

Please sign in to comment.