Skip to content

Commit 2c78cc3

Browse files
ci.yml,ci.sh: Create parallel jobs for stable and MSRV
Signed-off-by: Tomás González <tomasagustin.gonzalezorlando@arm.com>
1 parent 6622190 commit 2c78cc3

File tree

3 files changed

+38
-12
lines changed

3 files changed

+38
-12
lines changed

.github/actions/ci_script/action.yml

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
name: "CI script Tests"
2+
description: "Install and run Parsec with the Mbed Crypto provider"
3+
4+
runs:
5+
using: "composite"
6+
steps:
7+
- name: Install and run Parsec with the Mbed Crypto provider
8+
run: |
9+
git clone https://github.com/parallaxsecond/parsec.git
10+
cd parsec
11+
cargo build --features "mbed-crypto-provider"
12+
./target/debug/parsec -c ../tests/test_config.toml &
13+
shell: bash
14+
- name: Execute CI script
15+
run: ./tests/ci.sh
16+
shell: bash

.github/workflows/ci.yml

Lines changed: 20 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -7,15 +7,27 @@ jobs:
77
name: Execute CI script
88
runs-on: ubuntu-latest
99
steps:
10-
- uses: actions/checkout@v2
11-
- name: Install and run Parsec with the Mbed Crypto provider
12-
run: |
13-
git clone https://github.com/parallaxsecond/parsec.git
14-
cd parsec
15-
cargo build --features "mbed-crypto-provider"
16-
./target/debug/parsec -c ../tests/test_config.toml &
10+
- uses: actions/checkout@v3
11+
- name: Install latest Rust
12+
uses: actions-rust-lang/setup-rust-toolchain@v1
13+
with:
14+
toolchain: stable
15+
rustflags: ""
1716
- name: Execute CI script
18-
run: ./tests/ci.sh
17+
uses: ./.github/actions/ci_script
18+
19+
build-msrv:
20+
name: MSRV - Execute CI script
21+
runs-on: ubuntu-latest
22+
steps:
23+
- uses: actions/checkout@v3
24+
- name: Install Rust MSRV
25+
uses: actions-rust-lang/setup-rust-toolchain@v1
26+
with:
27+
toolchain: 1.66.0
28+
rustflags: ""
29+
- name: Execute CI script
30+
uses: ./.github/actions/ci_script
1931

2032
links:
2133
name: Check links

tests/ci.sh

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -8,14 +8,12 @@ set -xeuf -o pipefail
88
# Points to Parsec's Unix Domain Socket on the CI
99
export PARSEC_SERVICE_ENDPOINT="unix:/tmp/parsec.sock"
1010
export RUST_LOG=error
11-
MSRV=1.66.0
1211

1312
#########
1413
# Build #
1514
#########
16-
rustup toolchain install ${MSRV}
17-
RUST_BACKTRACE=1 cargo +${MSRV} build
18-
RUST_BACKTRACE=1 cargo +${MSRV} build --features spiffe-auth
15+
RUST_BACKTRACE=1 cargo build
16+
RUST_BACKTRACE=1 cargo build --features spiffe-auth
1917

2018
#################
2119
# Static checks #

0 commit comments

Comments
 (0)