on: [push, pull_request] name: Continuous integration env: TARGET_PLATFORM: --target x86_64-pc-windows-gnu APT_PACKAGES: mingw-64 jobs: check: name: Check runs-on: ubuntu-latest steps: - uses: actions/checkout@v4 - uses: actions-rust-lang/setup-rust-toolchain@v1 - run: sudo apt-get install $APT_PACKAGES - run: rustup target add "$TARGET_PLATFORM" - run: cargo check --target "$TARGET_PLATFORM" build: name: build runs-on: ubuntu-latest steps: - uses: actions/checkout@v4 - uses: actions-rust-lang/setup-rust-toolchain@v1 - run: sudo apt-get install $APT_PACKAGES - run: rustup target add "$TARGET_PLATFORM" - run: cargo build --target "$TARGET_PLATFORM"