Skip to content

Commit

Permalink
ci: simplify build ci
Browse files Browse the repository at this point in the history
  • Loading branch information
itsusinn committed Aug 6, 2021
1 parent 84098dd commit f09966a
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 29 deletions.
30 changes: 1 addition & 29 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -24,42 +24,14 @@ jobs:
~/.cargo/registry
~/.cargo/git
target
/tmp/assimp
key: ${{ runner.os }}-build-${{ hashFiles('**/Cargo.toml') }}
restore-keys: |
${{ runner.os }}-build
- name: Install stable Rust toolchain
uses: actions-rs/toolchain@v1
with:
profile: minimal
toolchain: stable
override: true
- name: Build
run: cargo build --verbose
- name: Run tests
run: cargo test --verbose
macos-build:
runs-on: macos-latest
steps:
- uses: actions/checkout@v2
with:
submodules: recursive
- name: Resume cache
uses: actions/cache@v2
with:
path: |
~/.cargo/registry
~/.cargo/git
target
/tmp/assimp
key: ${{ runner.os }}-build-${{ hashFiles('**/Cargo.toml') }}
restore-keys: |
${{ runner.os }}-build
- name: Install stable Rust toolchain
uses: actions-rs/toolchain@v1
with:
profile: minimal
toolchain: stable
toolchain: nightly
override: true
- name: Build
run: cargo build --verbose
Expand Down
4 changes: 4 additions & 0 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -89,6 +89,10 @@ jobs:
needs: [build-amd64]
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
with:
submodules: recursive

- name: Download binaries
uses: actions/download-artifact@v2
with:
Expand Down

0 comments on commit f09966a

Please sign in to comment.