From f09966a309a550133dfdd61e598088ae711aa486 Mon Sep 17 00:00:00 2001 From: itsusinn Date: Fri, 6 Aug 2021 20:48:15 +0800 Subject: [PATCH] ci: simplify build ci --- .github/workflows/build.yml | 30 +----------------------------- .github/workflows/release.yml | 4 ++++ 2 files changed, 5 insertions(+), 29 deletions(-) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 2249eb0..8313156 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -24,7 +24,6 @@ jobs: ~/.cargo/registry ~/.cargo/git target - /tmp/assimp key: ${{ runner.os }}-build-${{ hashFiles('**/Cargo.toml') }} restore-keys: | ${{ runner.os }}-build @@ -32,34 +31,7 @@ jobs: 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 diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index e1bb708..db5248a 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -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: