Skip to content

Commit c5837ac

Browse files
Merge pull request eclipse-score#30 from qorix-group/piotrkorkus_workflows_update
cicd: update GithubActions workflows
2 parents cbe30d6 + c806d63 commit c5837ac

File tree

10 files changed

+40
-53
lines changed

10 files changed

+40
-53
lines changed

.github/actions/setup-rust-build/action.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ runs:
2323
using: "composite"
2424
steps:
2525
- name: Checkout Repository
26-
uses: actions/checkout@v4
26+
uses: actions/checkout@v4.2.2
2727

2828
- name: Install protoc 26.1
2929
uses: arduino/setup-protoc@v3
@@ -32,7 +32,7 @@ runs:
3232
repo-token: ${{ inputs.repo-token }}
3333

3434
- name: Cache cargo & target
35-
uses: actions/cache@v3
35+
uses: actions/cache@v4
3636
with:
3737
path: |
3838
~/.cargo/registry

.github/workflows/build.yml

Lines changed: 1 addition & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -18,29 +18,17 @@ on:
1818
merge_group:
1919
types: [checks_requested]
2020

21-
env:
22-
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
23-
SCORE_QNX_USER: ${{ secrets.SCORE_QNX_USER }}
24-
SCORE_QNX_PASSWORD: ${{ secrets.SCORE_QNX_PASSWORD }}
25-
SCORE_QNX_LICENSE: ${{ secrets.SCORE_QNX_LICENSE }}
2621
jobs:
2722
build:
2823
name: Build Bazel Code
29-
runs-on: ${{ vars.REPO_RUNNER_LABELS && fromJSON(vars.REPO_RUNNER_LABELS) || 'ubuntu-latest' }}
24+
runs-on: ubuntu-latest
3025
steps:
3126
- name: Checkout code
3227
uses: actions/checkout@v4.2.2
3328

34-
- name: Install protoc 26.1
35-
uses: arduino/setup-protoc@v3
36-
with:
37-
version: 26.1
38-
repo-token: ${{ secrets.GITHUB_TOKEN }}
39-
4029
- name: Setup Bazel
4130
uses: bazel-contrib/setup-bazel@0.15.0
4231
with:
43-
bazelisk-version: 1.26.0 # newest LTS before 1 Jun 2025
4432
disk-cache: true
4533
repository-cache: true
4634
bazelisk-cache: true

.github/workflows/build_qnx8.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ jobs:
2626
with:
2727
bazel-target: '//src/...'
2828
bazel-config: 'build_qnx8'
29-
credential-helper: '.github/tools/qnx_credential_helper.py'
29+
credential-helper: 'scripts/internal/qnx_creds.py'
3030
environment-name: 'workflow-approval'
3131
secrets:
3232
score-qnx-license: ${{ secrets.SCORE_QNX_LICENSE }}

.github/workflows/cargo_required.yml

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ jobs:
3434
timeout-minutes: 45 # minutes is the maximum allowed for a cold run
3535
steps:
3636
- name: Checkout Repository
37-
uses: actions/checkout@v4
37+
uses: actions/checkout@v4.2.2
3838

3939
- name: Setup Rust Build Environment
4040
uses: ./.github/actions/setup-rust-build
@@ -47,13 +47,15 @@ jobs:
4747

4848
# ---------- TARPAULIN(TEST + COVERAGE) ----------
4949
- name: Run tests under coverage
50-
run: cargo +nightly tarpaulin --version 0.32.7 --skip-clean --out Html --verbose --no-dead-code --engine llvm --all-features
50+
run: cargo +nightly tarpaulin --skip-clean --out html --verbose --no-dead-code --engine llvm
5151

5252
- name: Upload coverage report
5353
uses: actions/upload-artifact@v4
5454
with:
55-
name: coverage-report
56-
path: tarpaulin-report.html
55+
name: ${{ github.event.repository.name }}_coverage_report
56+
path: |
57+
tarpaulin-report.html
58+
cobertura.xml
5759
5860
# ---------- MIRI ----------
5961
- name: Install nightly + miri (minimal profile)

.github/workflows/component_integration_tests.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ jobs:
3535
shell: bash
3636
steps:
3737
- name: Checkout repository
38-
uses: actions/checkout@v4
38+
uses: actions/checkout@v4.2.2
3939

4040
- name: Setup Rust Build Environment
4141
uses: ./.github/actions/setup-rust-build

.github/workflows/component_integration_tests_bazel.yml

Lines changed: 1 addition & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -23,26 +23,18 @@ on:
2323

2424
env:
2525
CARGO_TERM_COLOR: always
26-
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
2726

2827
jobs:
2928
build:
3029
name: Build Bazel Code
31-
runs-on: ${{ vars.REPO_RUNNER_LABELS && fromJSON(vars.REPO_RUNNER_LABELS) || 'ubuntu-latest' }}
30+
runs-on: ubuntu-latest
3231
steps:
3332
- name: Checkout code
3433
uses: actions/checkout@v4.2.2
3534

36-
- name: Install protoc 26.1
37-
uses: arduino/setup-protoc@v3
38-
with:
39-
version: 26.1
40-
repo-token: ${{ secrets.GITHUB_TOKEN }}
41-
4235
- name: Setup Bazel
4336
uses: bazel-contrib/setup-bazel@0.15.0
4437
with:
45-
bazelisk-version: 1.26.0 # newest LTS before 1 Jun 2025
4638
disk-cache: true
4739
repository-cache: true
4840
bazelisk-cache: true

.github/workflows/gitlint.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -20,10 +20,10 @@ env:
2020
jobs:
2121
lint-commits:
2222
name: check-commit-messages
23-
runs-on: ${{ vars.REPO_RUNNER_LABELS && fromJSON(vars.REPO_RUNNER_LABELS) || 'ubuntu-latest' }}
23+
runs-on: ubuntu-latest
2424
steps:
2525
- name: Checkout code
26-
uses: actions/checkout@v3
26+
uses: actions/checkout@v4.2.2
2727
with:
2828
fetch-depth: 0
2929
- name: Run Gitlint Action

.github/workflows/license_check.yml

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,8 +17,7 @@ on:
1717
types: [opened, reopened, synchronize]
1818
merge_group:
1919
types: [checks_requested]
20-
env:
21-
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
20+
2221
permissions:
2322
pull-requests: write
2423
issues: write

.github/workflows/lint_fmt_clippy.yml

Lines changed: 4 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -19,23 +19,18 @@ on:
1919

2020
env:
2121
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
22+
2223
jobs:
2324
lint-fmt-clippy:
2425
timeout-minutes: 6 # 6 minutes is the maximum allowed for a cold run
25-
runs-on: ${{ vars.REPO_RUNNER_LABELS && fromJSON(vars.REPO_RUNNER_LABELS) || 'ubuntu-latest' }}
26+
runs-on: ubuntu-latest
2627
steps:
27-
- uses: actions/checkout@v3
28+
- uses: actions/checkout@v4.2.2
2829
with:
2930
fetch-depth: 0
3031

31-
- name: Install protoc 26.1
32-
uses: arduino/setup-protoc@v3
33-
with:
34-
version: 26.1
35-
repo-token: ${{ secrets.GITHUB_TOKEN }}
36-
3732
- name: Cache Cargo registry, git deps & target
38-
uses: actions/cache@v3
33+
uses: actions/cache@v4
3934
with:
4035
path: |
4136
~/.cargo/registry

.github/workflows/tests.yml

Lines changed: 21 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -17,30 +17,41 @@ on:
1717
types: [opened, reopened, synchronize]
1818
merge_group:
1919
types: [checks_requested]
20-
env:
21-
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
2220

2321
jobs:
2422
setup-and-run-tests:
25-
runs-on: ${{ vars.REPO_RUNNER_LABELS && fromJSON(vars.REPO_RUNNER_LABELS) || 'ubuntu-latest' }}
23+
runs-on: ubuntu-latest
2624
steps:
2725
- name: Checkout repository
2826
uses: actions/checkout@v4.2.2
2927

30-
- name: Install protoc 26.1
31-
uses: arduino/setup-protoc@v3
32-
with:
33-
version: 26.1
34-
repo-token: ${{ secrets.GITHUB_TOKEN }}
35-
3628
- name: Setup Bazel with shared caching
3729
uses: bazel-contrib/setup-bazel@0.15.0
3830
with:
39-
bazelisk-version: 1.26.0
4031
disk-cache: true
4132
repository-cache: true
4233
bazelisk-cache: true
4334

35+
- name: Bazel info (discover paths)
36+
id: bazel-info
37+
run: |
38+
echo "BAZEL_OUTPUT_BASE=$(bazel info output_base)" >> $GITHUB_ENV
39+
echo "BAZEL_USER_ROOT=$(bazel info output_user_root)" >> $GITHUB_ENV
40+
echo "BAZEL_REPO_CACHE=$(bazel info repository_cache)" >> $GITHUB_ENV
41+
bazel info
42+
43+
- name: Cache Bazel output base
44+
uses: actions/cache@v4
45+
with:
46+
path: |
47+
${{ env.BAZEL_OUTPUT_BASE }}/action_cache
48+
${{ env.BAZEL_OUTPUT_BASE }}/bazel-out
49+
${{ env.BAZEL_OUTPUT_BASE }}/external
50+
${{ env.BAZEL_OUTPUT_BASE }}/execroot
51+
key: bazel-ob-v2-${{ runner.os }}-${{ hashFiles('.bazelversion', 'MODULE.bazel', 'MODULE.bazel.lock', '**/*.bzl', 'Cargo.lock') }}
52+
restore-keys: |
53+
bazel-ob-v2-${{ runner.os }}-
54+
4455
- name: Run Tests via Bazel
4556
run: |
4657
echo "Running: bazel test //src/..."

0 commit comments

Comments
 (0)