diff --git a/.github/workflows/macos.yml b/.github/workflows/macos.yml deleted file mode 100644 index 2465886f..00000000 --- a/.github/workflows/macos.yml +++ /dev/null @@ -1,22 +0,0 @@ -name: MacOs - -on: - push: - branches: [ "main" ] - pull_request: - branches: [ "main" ] - -env: - CARGO_TERM_COLOR: always - -jobs: - build: - - runs-on: macos-latest - - steps: - - uses: actions/checkout@v3 - - name: Build - run: cargo build --verbose - - name: Run tests - run: cargo test --verbose diff --git a/.github/workflows/linux.yml b/.github/workflows/rust.yml similarity index 67% rename from .github/workflows/linux.yml rename to .github/workflows/rust.yml index 2e211ee8..5e490216 100644 --- a/.github/workflows/linux.yml +++ b/.github/workflows/rust.yml @@ -1,4 +1,4 @@ -name: Linux +name: Rust on: push: @@ -11,8 +11,11 @@ env: jobs: build: + strategy: + matrix: + os: [ubuntu-latest, windows-latest, macos-latest] - runs-on: ubuntu-latest + runs-on: ${{ matrix.os }} steps: - uses: actions/checkout@v3 @@ -20,3 +23,4 @@ jobs: run: cargo build --verbose - name: Run tests run: cargo test --verbose + diff --git a/.github/workflows/windows.yml b/.github/workflows/windows.yml deleted file mode 100644 index b0894b31..00000000 --- a/.github/workflows/windows.yml +++ /dev/null @@ -1,22 +0,0 @@ -name: Windows - -on: - push: - branches: [ "main" ] - pull_request: - branches: [ "main" ] - -env: - CARGO_TERM_COLOR: always - -jobs: - build: - - runs-on: windows-latest - - steps: - - uses: actions/checkout@v3 - - name: Build - run: cargo build --verbose - - name: Run tests - run: cargo test --verbose