Skip to content

Commit

Permalink
Use the rust cache all around
Browse files Browse the repository at this point in the history
  • Loading branch information
2opremio committed Jun 18, 2024
1 parent 32a113d commit f6fad08
Show file tree
Hide file tree
Showing 3 changed files with 27 additions and 25 deletions.
36 changes: 21 additions & 15 deletions .github/workflows/codeql.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,21 +21,27 @@ jobs:
fail-fast: false
matrix:
include:
- language: go
build-mode: autobuild
- language: go
build-mode: autobuild

steps:
- name: Checkout repository
uses: actions/checkout@v4
- name: Checkout repository
uses: actions/checkout@v4
- uses: ./.github/actions/setup-go
with:
go-version: 1.22
- run: rustup update
- uses: stellar/actions/rust-cache@main
- run: make build-libpreflight

# Initializes the CodeQL tools for scanning.
- name: Initialize CodeQL
uses: github/codeql-action/init@v3
with:
languages: ${{ matrix.language }}
build-mode: ${{ matrix.build-mode }}
# Initializes the CodeQL tools for scanning.
- name: Initialize CodeQL
uses: github/codeql-action/init@v3
with:
languages: ${{ matrix.language }}
build-mode: ${{ matrix.build-mode }}

- name: Perform CodeQL Analysis
uses: github/codeql-action/analyze@v3
with:
category: "/language:${{matrix.language}}"
- name: Perform CodeQL Analysis
uses: github/codeql-action/analyze@v3
with:
category: "/language:${{matrix.language}}"
2 changes: 1 addition & 1 deletion .github/workflows/rust.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ jobs:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: stellar/actions/rust-cache@main
- run: rustup update
- uses: stellar/actions/rust-cache@main
- run: make rust-check
- run: make rust-test
14 changes: 5 additions & 9 deletions .github/workflows/soroban-rpc.yml
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,7 @@ jobs:
with:
go-version: ${{ matrix.go }}
- run: rustup update
- uses: stellar/actions/rust-cache@main
- run: make build-libpreflight
- run: go test -race -cover -timeout 25m -v ./cmd/soroban-rpc/...

Expand Down Expand Up @@ -81,9 +82,8 @@ jobs:
- run: |
rustup target add ${{ matrix.rust_target }}
rustup update
- name: Build libpreflight
run: make build-libpreflight
- uses: stellar/actions/rust-cache@main
- run: make build-libpreflight
env:
CARGO_BUILD_TARGET: ${{ matrix.rust_target }}

Expand Down Expand Up @@ -132,8 +132,6 @@ jobs:
docker pull "$PROTOCOL_${{ matrix.protocol-version }}_CORE_DOCKER_IMG"
echo SOROBAN_RPC_INTEGRATION_TESTS_DOCKER_IMG="$PROTOCOL_${{ matrix.protocol-version }}_CORE_DOCKER_IMG" >> $GITHUB_ENV
- uses: stellar/actions/rust-cache@main

- name: Install Captive Core
shell: bash
run: |
Expand Down Expand Up @@ -176,10 +174,8 @@ jobs:
docker-compose version
- run: rustup update

- name: Build libpreflight
shell: bash
run: make build-libpreflight
- uses: stellar/actions/rust-cache@main
- run: make build-libpreflight

- name: Run Soroban RPC Integration Tests
run: |
Expand Down

0 comments on commit f6fad08

Please sign in to comment.