Dev/sol/move rcc target to workflow #1151
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: CI | |
on: [push, pull_request] | |
jobs: | |
linux: | |
runs-on: ubuntu-latest | |
strategy: | |
matrix: | |
include: | |
- name: Rust formatting | |
step: cargo-fmt-check | |
- name: Rust linting | |
step: cargo-clippy | |
- name: Rust tests | |
step: cargo-test | |
steps: | |
- name: Checkout repository | |
uses: actions/checkout@v4 | |
- name: Setup environment | |
run: ./setup | |
- name: ${{ matrix.name }} | |
env: | |
STEP: ${{ matrix.step }} | |
run: ./ci "${STEP}" | |
windows: | |
runs-on: windows-latest | |
strategy: | |
matrix: | |
include: | |
- name: Rust formatting | |
step: cargo-fmt-check | |
- name: Rust linting | |
step: cargo-clippy | |
- name: Rust tests | |
step: cargo-test | |
steps: | |
- name: Checkout repository | |
uses: actions/checkout@v4 | |
- name: "Setup Rust" | |
uses: actions-rust-lang/[email protected] | |
with: | |
components: rustfmt, clippy | |
check_success: | |
if: always() | |
needs: | |
- linux | |
- windows | |
runs-on: ubuntu-latest | |
steps: | |
- name: Decide whether the needed jobs succeeded or failed | |
uses: re-actors/alls-green@release/v1 | |
with: | |
jobs: ${{ toJSON(needs) }} |