diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index a55f85c6f0..acc2a45494 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -11,161 +11,7 @@ env: RUST_BACKTRACE: 0 jobs: - test-package: - name: Test Package ${{ matrix.os }} - runs-on: ${{ matrix.os }} - strategy: - matrix: - os: [macOS-latest, ubuntu-latest] - include: - - os: ubuntu-latest - sccache-path: /home/runner/.cache/sccache - - os: macos-latest - sccache-path: /Users/runner/Library/Caches/Mozilla.sccache - - env: - RUSTC_WRAPPER: sccache - SCCACHE_CACHE_SIZE: 2G - SCCACHE_DIR: ${{ matrix.sccache-path }} - # SCCACHE_RECACHE: 1 # Uncomment this to clear cache, then comment it back out - steps: - - name: Checkout - uses: actions/checkout@v2 - with: - submodules: true - - - name: Install sccache Ubuntu - if: matrix.os == 'ubuntu-latest' - env: - LINK: https://github.com/mozilla/sccache/releases/download - SCCACHE_VERSION: v0.2.15 - run: | - SCCACHE_FILE=sccache-$SCCACHE_VERSION-x86_64-unknown-linux-musl - mkdir -p $HOME/.local/bin - curl -L "$LINK/$SCCACHE_VERSION/$SCCACHE_FILE.tar.gz" | tar xz - mv -f $SCCACHE_FILE/sccache $HOME/.local/bin/sccache - chmod +x $HOME/.local/bin/sccache - echo "$HOME/.local/bin" >> $GITHUB_PATH - - - name: Install sccache Macos - if: matrix.os == 'macos-latest' - run: | - brew install sccache - - - name: Install Rust Stable - uses: actions-rs/toolchain@v1 - with: - profile: minimal - toolchain: stable - override: true - - - name: Cache cargo registry - uses: actions/cache@v2 - continue-on-error: false - with: - path: | - ~/.cargo/registry - ~/.cargo/git - key: ${{ runner.os }}-cargo-${{ hashFiles('**/Cargo.lock') }} - restore-keys: | - ${{ runner.os }}-cargo- - - - name: Save sccache - uses: actions/cache@v2 - continue-on-error: false - with: - path: ${{ matrix.sccache-path }} - key: ${{ runner.os }}-sccache-${{ hashFiles('**/Cargo.lock') }} - restore-keys: | - ${{ runner.os }}-sccache- - - - name: Start sccache server - run: | - sccache --start-server - - - name: Test - uses: actions-rs/cargo@v1 - with: - command: test - args: --all - - - name: Print sccache stats - run: sccache --show-stats - - - name: Stop sccache server - run: sccache --stop-server || true - - test-package-macos_m1: - name: Test Package macOS M1 - runs-on: macos-latest - env: - RUSTC_WRAPPER: sccache - SCCACHE_CACHE_SIZE: 2G - SCCACHE_DIR: /Users/runner/Library/Caches/Mozilla.sccache - # SCCACHE_RECACHE: 1 # Uncomment this to clear cache, then comment it back out - steps: - - name: Xcode Select - uses: maxim-lobanov/setup-xcode@v1 - with: - xcode-version: latest-stable - - - name: Checkout - uses: actions/checkout@v2 - with: - submodules: true - - - name: Install sccache - run: | - brew install sccache - - - name: Install Rust - uses: actions-rs/toolchain@v1 - with: - profile: minimal - target: aarch64-apple-darwin - toolchain: stable - override: true - components: rustfmt - - - name: Cache cargo registry - uses: actions/cache@v2 - continue-on-error: false - with: - path: | - ~/.cargo/registry - ~/.cargo/git - key: m1-${{ hashFiles('**/Cargo.lock') }} - restore-keys: | - m1-cargo- - - - name: Save sccache - uses: actions/cache@v2 - continue-on-error: false - with: - path: /Users/runner/Library/Caches/Mozilla.sccache - key: m1-sccache-${{ hashFiles('**/Cargo.lock') }} - restore-keys: | - m1-sccache- - - - name: Start sccache server - run: | - sccache --start-server - - - name: Test - run: | - SDKROOT=$(xcrun -sdk macosx --show-sdk-path) \ - MACOSX_DEPLOYMENT_TARGET=$(xcrun -sdk macosx --show-sdk-platform-version) \ - cargo test --all - - - name: Print sccache stats - run: sccache --show-stats - - - name: Stop sccache server - run: sccache --stop-server || true - - - - test-docs: + test-docs: name: Test Docs runs-on: ubuntu-latest env: