Skip to content
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
19 changes: 18 additions & 1 deletion .github/workflows/ci.yml
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
# TODO: test more stuff on Windows.

name: CI

on:
Expand All @@ -13,7 +15,14 @@ env:

jobs:
build:
runs-on: ubuntu-24.04
runs-on: ${{ matrix.os }}

strategy:
matrix:
os:
- ubuntu-24.04
- windows-2025

steps:
- uses: actions/checkout@v3
- uses: actions-rs/toolchain@v1
Expand All @@ -24,6 +33,7 @@ jobs:
components: clippy

- name: Download and install GCC fork
if: ${{ matrix.os == 'ubuntu-24.04' }}
run: |
curl -LO https://github.com/antoyo/gcc/releases/latest/download/gcc-15.deb
sudo dpkg --force-overwrite -i gcc-15.deb
Expand Down Expand Up @@ -51,17 +61,24 @@ jobs:
key: ${{ runner.os }}-cargo-build-target-${{ hashFiles('rust-toolchain') }}

- name: Build
if: ${{ matrix.os == 'ubuntu-24.04' }}
run: |
cargo build
cargo build --features master,dlopen
cargo build --examples

- name: Build
if: ${{ matrix.os == 'windows-2025' }}
run: cargo build --features master,dlopen

- name: Test
if: ${{ matrix.os == 'ubuntu-24.04' }}
run: |
cd examples/factorial
cargo build

- name: clippy
if: ${{ matrix.os == 'ubuntu-24.04' }}
run: |
cargo clippy --all-targets -- -D warnings
cargo clippy --all-targets --features master,dlopen -- -D warnings
Loading