Skip to content

Commit 856ffc5

Browse files
committed
Proper migration of renode tests
1 parent 234cea6 commit 856ffc5

9 files changed

Lines changed: 88 additions & 8 deletions

.github/workflows/test-renode-fastmath-smallstack.yml

Lines changed: 11 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,10 @@ on:
66
pull_request:
77
branches: [ '*' ]
88

9+
permissions:
10+
contents: read
11+
packages: read
12+
913
jobs:
1014
renode_automated_fastmath_smallstack:
1115
runs-on: ubuntu-22.04
@@ -15,6 +19,13 @@ jobs:
1519
with:
1620
submodules: true
1721

22+
- name: Log in to GHCR
23+
uses: docker/login-action@v3
24+
with:
25+
registry: ghcr.io
26+
username: ${{ github.actor }}
27+
password: ${{ secrets.GITHUB_TOKEN }}
28+
1829
- name: Select config
1930
run: |
2031
cp config/examples/nrf52840.config .config && make include/target.h
@@ -55,4 +66,3 @@ jobs:
5566
with:
5667
name: Renode Test Results
5768
path: test_results/
58-

.github/workflows/test-renode-fastmath.yml

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,10 @@ on:
66
pull_request:
77
branches: [ '*' ]
88

9+
permissions:
10+
contents: read
11+
packages: read
12+
913
jobs:
1014
renode_automated_fastmath:
1115
runs-on: ubuntu-22.04
@@ -16,6 +20,13 @@ jobs:
1620
with:
1721
submodules: true
1822

23+
- name: Log in to GHCR
24+
uses: docker/login-action@v3
25+
with:
26+
registry: ghcr.io
27+
username: ${{ github.actor }}
28+
password: ${{ secrets.GITHUB_TOKEN }}
29+
1930
- name: Select config
2031
run: |
2132
cp config/examples/nrf52840.config .config && make include/target.h

.github/workflows/test-renode-noasm-smallstack.yml

Lines changed: 11 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,10 @@ on:
66
pull_request:
77
branches: [ '*' ]
88

9+
permissions:
10+
contents: read
11+
packages: read
12+
913
jobs:
1014
renode_automated_noasm_smallstack:
1115
runs-on: ubuntu-22.04
@@ -16,6 +20,13 @@ jobs:
1620
with:
1721
submodules: true
1822

23+
- name: Log in to GHCR
24+
uses: docker/login-action@v3
25+
with:
26+
registry: ghcr.io
27+
username: ${{ github.actor }}
28+
password: ${{ secrets.GITHUB_TOKEN }}
29+
1930
- name: Select config
2031
run: |
2132
cp config/examples/nrf52840.config .config && make include/target.h
@@ -56,4 +67,3 @@ jobs:
5667
with:
5768
name: Renode Test Results
5869
path: test_results/
59-

.github/workflows/test-renode-noasm.yml

Lines changed: 11 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,10 @@ on:
66
pull_request:
77
branches: [ '*' ]
88

9+
permissions:
10+
contents: read
11+
packages: read
12+
913
jobs:
1014
renode_automated_noasm:
1115
runs-on: ubuntu-22.04
@@ -16,6 +20,13 @@ jobs:
1620
with:
1721
submodules: true
1822

23+
- name: Log in to GHCR
24+
uses: docker/login-action@v3
25+
with:
26+
registry: ghcr.io
27+
username: ${{ github.actor }}
28+
password: ${{ secrets.GITHUB_TOKEN }}
29+
1930
- name: Select config
2031
run: |
2132
cp config/examples/nrf52840.config .config && make include/target.h
@@ -65,4 +76,3 @@ jobs:
6576
with:
6677
name: Renode Test Results
6778
path: test_results/
68-

.github/workflows/test-renode-nrf52.yml

Lines changed: 11 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,10 @@ on:
66
pull_request:
77
branches: [ '*' ]
88

9+
permissions:
10+
contents: read
11+
packages: read
12+
913
jobs:
1014
renode_automated_base:
1115
runs-on: ubuntu-22.04
@@ -16,6 +20,13 @@ jobs:
1620
with:
1721
submodules: true
1822

23+
- name: Log in to GHCR
24+
uses: docker/login-action@v3
25+
with:
26+
registry: ghcr.io
27+
username: ${{ github.actor }}
28+
password: ${{ secrets.GITHUB_TOKEN }}
29+
1930
- name: Select config
2031
run: |
2132
cp config/examples/nrf52840.config .config && make include/target.h SIGN=NONE
@@ -84,4 +95,3 @@ jobs:
8495
with:
8596
name: Renode Test Results
8697
path: test_results/
87-

.github/workflows/test-renode-sha3.yml

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,10 @@ on:
66
pull_request:
77
branches: [ '*' ]
88

9+
permissions:
10+
contents: read
11+
packages: read
12+
913
jobs:
1014
renode_automated_multi_sha:
1115
runs-on: ubuntu-22.04
@@ -16,6 +20,13 @@ jobs:
1620
with:
1721
submodules: true
1822

23+
- name: Log in to GHCR
24+
uses: docker/login-action@v3
25+
with:
26+
registry: ghcr.io
27+
username: ${{ github.actor }}
28+
password: ${{ secrets.GITHUB_TOKEN }}
29+
1930
- name: Select config
2031
run: |
2132
cp config/examples/nrf52840.config .config && make include/target.h

.github/workflows/test-renode-sha384.yml

Lines changed: 11 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,10 @@ on:
66
pull_request:
77
branches: [ '*' ]
88

9+
permissions:
10+
contents: read
11+
packages: read
12+
913
jobs:
1014
renode_automated_multi_sha:
1115
runs-on: ubuntu-22.04
@@ -16,6 +20,13 @@ jobs:
1620
with:
1721
submodules: true
1822

23+
- name: Log in to GHCR
24+
uses: docker/login-action@v3
25+
with:
26+
registry: ghcr.io
27+
username: ${{ github.actor }}
28+
password: ${{ secrets.GITHUB_TOKEN }}
29+
1930
- name: Select config
2031
run: |
2132
cp config/examples/nrf52840.config .config && make include/target.h
@@ -68,4 +79,3 @@ jobs:
6879
with:
6980
name: Renode Test Results
7081
path: test_results/
71-

.github/workflows/test-renode-smallstack.yml

Lines changed: 11 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,10 @@ on:
66
pull_request:
77
branches: [ '*' ]
88

9+
permissions:
10+
contents: read
11+
packages: read
12+
913
jobs:
1014
renode_automated_smallstack:
1115
runs-on: ubuntu-22.04
@@ -16,6 +20,13 @@ jobs:
1620
with:
1721
submodules: true
1822

23+
- name: Log in to GHCR
24+
uses: docker/login-action@v3
25+
with:
26+
registry: ghcr.io
27+
username: ${{ github.actor }}
28+
password: ${{ secrets.GITHUB_TOKEN }}
29+
1930
- name: Select config
2031
run: |
2132
cp config/examples/nrf52840.config .config && make include/target.h
@@ -71,4 +82,3 @@ jobs:
7182
with:
7283
name: Renode Test Results
7384
path: test_results/
74-

tools/renode/docker-test.sh

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,8 +12,6 @@ mkdir -p ${HOST_LOG_PATH}
1212

1313
docker pull ${DOCKER_IMAGE} >/dev/null 2>&1 || true
1414

15-
# running in `if` to avoid setting +e
16-
1715
exit_code=0
1816
if ! docker run \
1917
--log-driver=none -a stdout -a stderr \

0 commit comments

Comments
 (0)