Skip to content

Commit

Permalink
Merge pull request #660 from cbgbt/windows-ci
Browse files Browse the repository at this point in the history
Enable windows and macos builds in CI
  • Loading branch information
cbgbt authored Aug 25, 2023
2 parents fc1a74a + a18164b commit 1f14fb8
Show file tree
Hide file tree
Showing 30 changed files with 923 additions and 349 deletions.
2 changes: 1 addition & 1 deletion .github/cache_bust
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# this file provides a manual way to clear out github actions caches. any change
# to this file will cause all github action caches to miss. increment the number
# below by 1 if you need to clear the caches.
3
4
12 changes: 9 additions & 3 deletions .github/workflows/rust.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,23 +5,29 @@ on:
- "**.md"
- ".github/dependabot.yml"
branches: [develop]

env:
# From-scratch builds with incremental compilation enabled adds unneeded performance and disk overhead.
CARGO_INCREMENTAL: "0"

jobs:
build:
strategy:
fail-fast: false
matrix:
make_target: ["check-licenses", "build", "integ"]
runs-on: ubuntu-latest
os: [ubuntu-latest, windows-latest, macos-latest]
runs-on: ${{ matrix.os }}
steps:
- uses: actions/checkout@v3
- uses: actions/cache@v3
with:
path: |
.cargo
target
# you can edit the .github/cache_bust file if you need to clear the cache
key: ${{ hashFiles('.github/cache_bust') }}-${{ runner.os }}-${{ matrix.make_target }}-${{ hashFiles('**/Cargo.lock') }}
restore-keys: |
${{ hashFiles('.github/cache_bust') }}-${{ runner.os }}-${{ matrix.make_target }}-
${{ hashFiles('.github/cache_bust') }}-${{ runner.os }}-${{ matrix.make_target }}
- run: rustup default 1.71.1
- run: rustup component add rustfmt
- run: rustup component add clippy
Expand Down
Loading

0 comments on commit 1f14fb8

Please sign in to comment.