Skip to content

Commit d03bed1

Browse files
committed
Merge branch 'ci/soc_config'
2 parents e7c9f9a + 6199914 commit d03bed1

File tree

3 files changed

+17
-3
lines changed

3 files changed

+17
-3
lines changed

.github/workflows/tests_hw_wokwi.yml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -367,7 +367,8 @@ jobs:
367367
"TEST_CHIPS":"${{ steps.prepare-variables.outputs.test_chips }}",
368368
"PIPELINE_ID":"${{ env.id }}",
369369
"BINARIES_RUN_ID":"${{ github.event.workflow_run.id }}",
370-
"GITHUB_REPOSITORY":"${{ github.repository }}"
370+
"GITHUB_REPOSITORY":"${{ github.repository }}",
371+
"GITHUB_REF":"${{ needs.get-artifacts.outputs.base }}"
371372
}
372373
373374
- name: Process Downloaded Artifacts

.gitlab/workflows/hardware_tests_dynamic.yml

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,11 @@ generate-hw-tests:
1515
DEBIAN_FRONTEND: "noninteractive"
1616
TEST_TYPES: $TEST_TYPES
1717
TEST_CHIPS: $TEST_CHIPS
18+
GIT_STRATEGY: none
1819
before_script:
20+
- apt-get update && apt-get install -y git
21+
- echo "Cloning repository from GitHub:$GITHUB_REPOSITORY at ref $GITHUB_REF"
22+
- git clone --branch $GITHUB_REF --depth 1 https://github.com/$GITHUB_REPOSITORY.git .
1923
- bash .gitlab/scripts/install_dependencies.sh
2024
script:
2125
- mkdir -p ~/.arduino/tests
@@ -48,6 +52,7 @@ trigger-hw-tests:
4852
# Forward common context to children
4953
BINARIES_RUN_ID: $BINARIES_RUN_ID
5054
GITHUB_REPOSITORY: $GITHUB_REPOSITORY
55+
GITHUB_REF: $GITHUB_REF
5156
PIPELINE_ID: $PIPELINE_ID
5257
trigger:
5358
include:
@@ -62,8 +67,12 @@ collect-hw-results:
6267
rules:
6368
- if: $CI_PIPELINE_SOURCE == "trigger"
6469
when: always
70+
variables:
71+
GIT_STRATEGY: none
6572
before_script:
66-
- apt-get update && apt-get install -y jq curl unzip
73+
- apt-get update && apt-get install -y jq curl unzip git
74+
- echo "Cloning repository from GitHub:$GITHUB_REPOSITORY at ref $GITHUB_REF"
75+
- git clone --branch $GITHUB_REF --depth 1 https://github.com/$GITHUB_REPOSITORY.git .
6776
script:
6877
- bash .gitlab/scripts/get_results.sh
6978
artifacts:

.gitlab/workflows/hw_test_template.yml

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,14 +25,18 @@ hw-test-template:
2525
PIPELINE_ID: $PIPELINE_ID
2626
BINARIES_RUN_ID: $BINARIES_RUN_ID
2727
GITHUB_REPOSITORY: $GITHUB_REPOSITORY
28+
GITHUB_REF: $GITHUB_REF
29+
GIT_STRATEGY: none
2830

2931
tags:
3032
- $TEST_CHIP
3133

3234
before_script:
3335
- echo "Running hardware tests for chip:$TEST_CHIP type:$TEST_TYPE"
3436
- echo "Pipeline ID:$PIPELINE_ID"
35-
- echo "Running hardware tests for chip:$TEST_CHIP"
37+
- echo "Cloning repository from GitHub:$GITHUB_REPOSITORY at ref $GITHUB_REF"
38+
- apt-get update && apt-get install -y git
39+
- git clone --branch $GITHUB_REF --depth 1 https://github.com/$GITHUB_REPOSITORY.git .
3640
- bash .gitlab/scripts/install_dependencies.sh
3741
- rm -rf ~/.arduino/tests
3842
- mkdir -p ~/.arduino/tests/$TEST_CHIP

0 commit comments

Comments
 (0)