Skip to content

Commit

Permalink
last attempt
Browse files Browse the repository at this point in the history
  • Loading branch information
b-yap committed Sep 23, 2024
1 parent fb2d9bf commit b15e2fb
Show file tree
Hide file tree
Showing 3 changed files with 17 additions and 41 deletions.
12 changes: 7 additions & 5 deletions .github/actions/install-rust-nightly/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,13 +15,15 @@ runs:
rm /home/runner/work/spacewalk/spacewalk/rust-toolchain.toml
- name: Setup nightly Rust toolchain
uses: dtolnay/rust-toolchain@nightly
uses: actions-rs/toolchain@v1
# uses: dtolnay/rust-toolchain@nightly
with:
toolchain: ${{ inputs.version }}
components: rustfmt, clippy
target: wasm32-unknown-unknown
override: true

- name: Setup nightly Rust as default
shell: bash
run: |
rustup default ${{ inputs.version }}
# - name: Setup nightly Rust as default
# shell: bash
# run: |
# rustup default ${{ inputs.version }}
45 changes: 10 additions & 35 deletions .github/workflows/ci-main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -103,8 +103,8 @@ jobs:
#
# cargo-test-clients:
# name: Run Tests for Clients
# needs: cargo-test-pallets
# if: needs.cargo-test-pallets.result == 'success'
# needs: build-check
# if: needs.build-check.result == 'success'
# runs-on: ubuntu-latest
# env:
# SOURCE_STELLAR_SECRET_MAINNET: ${{ secrets.SOURCE_STELLAR_SECRET_MAINNET }}
Expand All @@ -128,46 +128,21 @@ jobs:

cargo-test-vault:
name: Run Tests for Vault
# needs: cargo-test-clients
# if: needs.cargo-test-clients.result == 'success'
needs: [
cargo-test-pallets,
cargo-test-clients,
]
if: needs.cargo-test-clients.result == 'success' && needs.cargo-test-pallets.result == 'success'
runs-on: ubuntu-latest

steps:
- name: Checkout Repository
uses: actions/checkout@v4

# - name: Undergo Prerequisite (for Nightly)
# uses: ./.github/actions/prerequisite-nightly
# with:
# token: ${{ secrets.GITHUB_TOKEN }}
# version: ${{ env.RUSTUP_NIGHTLY_VERSION }}

# Free GitHub Actions Environment Disk Space
- name: Maximize Build Space
uses: jlumbroso/free-disk-space@main
with:
tool-cache: false
large-packages: false

- name: Install Libs
uses: ./.github/actions/installations
- name: Undergo Prerequisite (for Nightly)
uses: ./.github/actions/prerequisite-nightly
with:
token: ${{ secrets.GITHUB_TOKEN }}

- name: Set up Cargo cache
uses: actions/cache@v4
with:
path: |
${{ env.CARGO_HOME }}/bin/
${{ env.CARGO_HOME }}/registry/index/
${{ env.CARGO_HOME }}/registry/cache/
${{ env.CARGO_HOME }}/git/db/
key: ${{ github.job }}-${{ github.ref }}-${{ hashFiles('**/Cargo.lock') }}
save-always: true

- name: Install nightly
uses: ./.github/actions/install-rust-nightly
with:
version: ${{ env.RUSTUP_NIGHTLY_VERSION }}

- name: Run Tests for Vault
Expand All @@ -181,4 +156,4 @@ jobs:
toolchain: ${{ env.RUSTUP_NIGHTLY_VERSION }}
command: test
# we only test the standalone-metadata
args: -p vault --features integration-test
args: --release -p vault --features integration-test
1 change: 0 additions & 1 deletion Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit b15e2fb

Please sign in to comment.