Skip to content

Commit

Permalink
different strategy
Browse files Browse the repository at this point in the history
  • Loading branch information
ermalkaleci committed Aug 23, 2023
1 parent d2b2def commit 885bd42
Showing 1 changed file with 37 additions and 34 deletions.
71 changes: 37 additions & 34 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -28,18 +28,13 @@ jobs:
runs-on: [self-hosted, linux]
env:
CARGO_INCREMENTAL: 0
needs: clean-up-actions
needs: [clean-up-actions, build-cache]
steps:
- uses: actions/checkout@v3
with:
submodules: recursive
- uses: actions/cache@v3
- uses: actions/cache/restore@v3
with:
path: |
~/.cargo/bin/
~/.cargo/registry/index/
~/.cargo/registry/cache/
~/.cargo/git/db/
key: ${{ runner.os }}-cargo-${{ hashFiles('**/Cargo.lock') }}
- name: Install toolchain
uses: dtolnay/rust-toolchain@nightly
Expand Down Expand Up @@ -67,20 +62,13 @@ jobs:
runs-on: [self-hosted, linux]
env:
CARGO_INCREMENTAL: 0
needs: clean-up-actions
needs: [clean-up-actions, build-cache]
steps:
- uses: actions/checkout@v3
with:
submodules: recursive
- uses: actions/cache@v3
- uses: actions/cache/restore@v3
with:
path: |
~/.cargo/bin/
~/.cargo/registry/index/
~/.cargo/registry/cache/
~/.cargo/git/db/
target/
!target/debug/
key: ${{ runner.os }}-cargo-${{ hashFiles('**/Cargo.lock') }}
- name: Install toolchain
uses: dtolnay/rust-toolchain@nightly
Expand All @@ -98,20 +86,13 @@ jobs:
runs-on: [self-hosted, linux]
env:
CARGO_INCREMENTAL: 0
needs: clean-up-actions
needs: [clean-up-actions, build-cache]
steps:
- uses: actions/checkout@v3
with:
submodules: recursive
- uses: actions/cache@v3
- uses: actions/cache/restore@v3
with:
path: |
~/.cargo/bin/
~/.cargo/registry/index/
~/.cargo/registry/cache/
~/.cargo/git/db/
target/
!target/debug/
key: ${{ runner.os }}-cargo-${{ hashFiles('**/Cargo.lock') }}
- name: Install toolchain
uses: dtolnay/rust-toolchain@nightly
Expand All @@ -137,20 +118,13 @@ jobs:
runs-on: [self-hosted, linux]
env:
CARGO_INCREMENTAL: 0
needs: clean-up-actions
needs: [clean-up-actions, build-cache]
steps:
- uses: actions/checkout@v3
with:
submodules: recursive
- uses: actions/cache@v3
- uses: actions/cache/restore@v3
with:
path: |
~/.cargo/bin/
~/.cargo/registry/index/
~/.cargo/registry/cache/
~/.cargo/git/db/
target/
!target/debug/
key: ${{ runner.os }}-cargo-${{ hashFiles('**/Cargo.lock') }}
- name: Install toolchain
uses: dtolnay/rust-toolchain@nightly
Expand All @@ -170,3 +144,32 @@ jobs:
run: |
npm install -g yarn
make test-ts
build-cache:
runs-on: [self-hosted, linux]
env:
CARGO_INCREMENTAL: 0
needs: clean-up-actions
steps:
- uses: actions/checkout@v3
with:
submodules: recursive
- uses: actions/cache@v3
with:
path: |
~/.cargo/bin/
~/.cargo/registry/index/
~/.cargo/registry/cache/
~/.cargo/git/db/
target/
!target/debug/
key: ${{ runner.os }}-cargo-${{ hashFiles('**/Cargo.lock') }}
- name: Install toolchain
uses: dtolnay/rust-toolchain@nightly
with:
toolchain: nightly-2023-04-15
components: rustfmt
target: wasm32-unknown-unknown
- name: Setup cmake
uses: jwlawson/[email protected]
- name: Run build release
run: cargo build --release --lib

0 comments on commit 885bd42

Please sign in to comment.