Skip to content

Commit

Permalink
keep improving
Browse files Browse the repository at this point in the history
  • Loading branch information
gpmayorga committed Sep 13, 2023
1 parent c5eddae commit ca760f8
Show file tree
Hide file tree
Showing 2 changed files with 27 additions and 16 deletions.
4 changes: 3 additions & 1 deletion .github/workflows/build-wasm.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,8 @@ jobs:
RUST_TOOLCHAIN: "nightly-2022-11-14"
RUSTFLAGS: " -W unused-extern-crates"
PACKAGE: "altair-runtime"
SCCACHE_GHA_ENABLED: "true"
RUSTC_WRAPPER: "sccache"
steps:
- name: Check out code
uses: actions/checkout@8e5e7e5ab8b370d6c329ec480221332ada57f0ab #3.5.2
Expand Down Expand Up @@ -53,7 +55,7 @@ jobs:
name: ${{ matrix.target }}-${{ matrix.package }}
runs-on: ubuntu-latest-4-cores
env:
SCCACHE_GHA_ENABLED: "true"
# SCCACHE_GHA_ENABLED: "true"
RUSTC_WRAPPER: "sccache"
permissions:
contents: 'read'
Expand Down
39 changes: 24 additions & 15 deletions .github/workflows/tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ on:
- 'src/'
- '.github/workflows/tests.yml'
name: Tests
concurrency:
concurrency:
group: 'tests-${{ github.event.pull_request.head.label || github.head_ref || github.ref }}'
cancel-in-progress: true
jobs:
Expand All @@ -15,32 +15,32 @@ jobs:
env:
RUST_TOOLCHAIN: "nightly-2022-11-14"
# SCCACHE_GHA_ENABLED: "true"
# RUSTC_WRAPPER: "sccache"
# RUSTC_WRAPPER: "sccache"
strategy:
matrix:
target: [fmt, clippy]
runs-on: ubuntu-latest
steps:
- name: Check out code
uses: actions/checkout@8e5e7e5ab8b370d6c329ec480221332ada57f0ab #3.5.2
- uses: Swatinem/rust-cache@cb2cf0cc7c5198d3364b9630e2c3d457f160790c

- uses: Swatinem/rust-cache@cb2cf0cc7c5198d3364b9630e2c3d457f160790c
# - name: Run sccache-cache
# uses: mozilla-actions/[email protected]
# uses: mozilla-actions/[email protected]

- name: Prep build on Ubuntu
uses: ./.github/actions/prep-ubuntu
with:
RUST_TOOLCHAIN: ${{ env.RUST_TOOLCHAIN }}

- name: Run lints
run: ./ci/script.sh
env:
TARGET: ${{ matrix.target }}
# - name: Run sccache stat for check
# shell: bash
# run: ${SCCACHE_PATH} --show-stats
# run: ${SCCACHE_PATH} --show-stats


tests:
name: ${{ matrix.target }}-tests
Expand All @@ -52,31 +52,40 @@ jobs:
RUST_TOOLCHAIN: "nightly"
RUST_MIN_STACK: 8388608
# SCCACHE_GHA_ENABLED: "true"
# RUSTC_WRAPPER: "sccache"
# RUSTC_WRAPPER: "sccache"
steps:
- name: Check out code
uses: actions/checkout@8e5e7e5ab8b370d6c329ec480221332ada57f0ab #3.5.2
- uses: Swatinem/rust-cache@cb2cf0cc7c5198d3364b9630e2c3d457f160790c
uses: actions/checkout@8e5e7e5ab8b370d6c329ec480221332ada57f0ab #3.5.2

- name: Swatinem rust cache setup
uses: Swatinem/rust-cache@b8a6852b4f997182bdea832df3f9e153038b5191 # 2.6.0
with:
prefix-key: cache-tests
shared-key: cargo-tests
cache-on-failure: "true"
# save-if: ${{ github.ref == 'refs/heads/master' }}


# - name: Run sccache-cache
# uses: mozilla-actions/[email protected]
# uses: mozilla-actions/[email protected]
- name: Prep build on Ubuntu
uses: ./.github/actions/prep-ubuntu
with:
RUST_TOOLCHAIN: ${{ env.RUST_TOOLCHAIN }}
- name: Check out code
uses: actions/checkout@v3

- name: runtime-benchmarks and try-runtime
if: ${{ matrix.target == 'general' }}
run: |
cargo test --workspace --release \
cargo test --workspace --release \
--features runtime-benchmarks,try-runtime \
--exclude runtime-integration-tests
- name: fast-runtime integration tests
if: ${{ matrix.target == 'integration' }}
run: |
cargo test --release \
cargo test --release \
--features fast-runtime \
--package runtime-integration-tests
Expand Down

0 comments on commit ca760f8

Please sign in to comment.