Skip to content

Commit

Permalink
ci.yml,ci.sh: Create parallel jobs for stable and MSRV
Browse files Browse the repository at this point in the history
Signed-off-by: Tomás González <tomasagustin.gonzalezorlando@arm.com>
  • Loading branch information
tgonzalezorlandoarm committed Nov 15, 2023
1 parent 6622190 commit 2c78cc3
Show file tree
Hide file tree
Showing 3 changed files with 38 additions and 12 deletions.
16 changes: 16 additions & 0 deletions .github/actions/ci_script/action.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
name: "CI script Tests"
description: "Install and run Parsec with the Mbed Crypto provider"

runs:
using: "composite"
steps:
- name: Install and run Parsec with the Mbed Crypto provider
run: |
git clone https://github.com/parallaxsecond/parsec.git
cd parsec
cargo build --features "mbed-crypto-provider"
./target/debug/parsec -c ../tests/test_config.toml &
shell: bash
- name: Execute CI script
run: ./tests/ci.sh
shell: bash
28 changes: 20 additions & 8 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,15 +7,27 @@ jobs:
name: Execute CI script
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Install and run Parsec with the Mbed Crypto provider
run: |
git clone https://github.com/parallaxsecond/parsec.git
cd parsec
cargo build --features "mbed-crypto-provider"
./target/debug/parsec -c ../tests/test_config.toml &
- uses: actions/checkout@v3
- name: Install latest Rust
uses: actions-rust-lang/setup-rust-toolchain@v1
with:
toolchain: stable
rustflags: ""
- name: Execute CI script
run: ./tests/ci.sh
uses: ./.github/actions/ci_script

build-msrv:
name: MSRV - Execute CI script
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Install Rust MSRV
uses: actions-rust-lang/setup-rust-toolchain@v1
with:
toolchain: 1.66.0
rustflags: ""
- name: Execute CI script
uses: ./.github/actions/ci_script

links:
name: Check links
Expand Down
6 changes: 2 additions & 4 deletions tests/ci.sh
Original file line number Diff line number Diff line change
Expand Up @@ -8,14 +8,12 @@ set -xeuf -o pipefail
# Points to Parsec's Unix Domain Socket on the CI
export PARSEC_SERVICE_ENDPOINT="unix:/tmp/parsec.sock"
export RUST_LOG=error
MSRV=1.66.0

#########
# Build #
#########
rustup toolchain install ${MSRV}
RUST_BACKTRACE=1 cargo +${MSRV} build
RUST_BACKTRACE=1 cargo +${MSRV} build --features spiffe-auth
RUST_BACKTRACE=1 cargo build
RUST_BACKTRACE=1 cargo build --features spiffe-auth

#################
# Static checks #
Expand Down

0 comments on commit 2c78cc3

Please sign in to comment.