Skip to content

Commit e44e6b2

Browse files
authored
Merge pull request #754 from danielinux/fix-renode-test
Migrate renode test to new container
2 parents 25c0aaa + c0f6b12 commit e44e6b2

14 files changed

Lines changed: 247 additions & 29 deletions

.github/workflows/test-build-kontron-vx3060-s2.yml

Lines changed: 32 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,10 +12,40 @@ jobs:
1212
- uses: actions/checkout@v4
1313
with:
1414
submodules: true
15+
- name: Workaround for sources.list
16+
run: |
17+
set -euxo pipefail
18+
19+
apt-cache policy
20+
grep -RInE '^(deb|Types|URIs)' /etc/apt || true
21+
22+
shopt -s nullglob
23+
24+
sudo sed -i \
25+
-e "s|https\?://azure\.archive\.ubuntu\.com/ubuntu/?|https://mirror.arizona.edu/ubuntu/|g" \
26+
/etc/apt/sources.list || true
27+
28+
for f in /etc/apt/sources.list.d/*.list; do
29+
sudo sed -i \
30+
-e "s|https\?://azure\.archive\.ubuntu\.com/ubuntu/?|https://mirror.arizona.edu/ubuntu/|g" \
31+
"$f"
32+
done
33+
34+
for f in /etc/apt/sources.list.d/*.sources; do
35+
sudo sed -i \
36+
-e "s|https\?://azure\.archive\.ubuntu\.com/ubuntu/?|https://mirror.arizona.edu/ubuntu/|g" \
37+
-e "s|https\?://azure\.archive\.ubuntu\.com|https://mirror.arizona.edu|g" \
38+
"$f"
39+
done
40+
41+
if grep -qE '^[[:space:]]*https?://azure\.archive\.ubuntu\.com/ubuntu/?' /etc/apt/apt-mirrors.txt; then
42+
sudo sed -i 's|https\?://azure\.archive\.ubuntu\.com/ubuntu/|https://mirror.arizona.edu/ubuntu/|g' /etc/apt/apt-mirrors.txt
43+
fi
1544
- name: install req
1645
run: |
17-
sudo apt-get update
18-
sudo apt-get install --no-install-recommends -y -q nasm gcc-multilib
46+
export DEBIAN_FRONTEND=noninteractive
47+
sudo apt-get update -o Acquire::Retries=3
48+
sudo apt-get install --no-install-recommends -y -q -o Acquire::Retries=3 nasm gcc-multilib
1949
- name: setup git
2050
run: |
2151
git config --global user.email "you@example.com"

.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
@@ -70,4 +81,3 @@ jobs:
7081
with:
7182
name: Renode Test Results
7283
path: test_results/
73-

.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
@@ -71,4 +82,3 @@ jobs:
7182
with:
7283
name: Renode Test Results
7384
path: test_results/
74-

.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
@@ -80,4 +91,3 @@ jobs:
8091
with:
8192
name: Renode Test Results
8293
path: test_results/
83-

.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
@@ -86,4 +97,3 @@ jobs:
8697
with:
8798
name: Renode Test Results
8899
path: test_results/
89-

.github/workflows/test-x86-fsp-qemu.yml

Lines changed: 32 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,10 +12,40 @@ jobs:
1212
- uses: actions/checkout@v4
1313
with:
1414
submodules: true
15+
- name: Workaround for sources.list
16+
run: |
17+
set -euxo pipefail
18+
19+
apt-cache policy
20+
grep -RInE '^(deb|Types|URIs)' /etc/apt || true
21+
22+
shopt -s nullglob
23+
24+
sudo sed -i \
25+
-e "s|https\?://azure\.archive\.ubuntu\.com/ubuntu/?|https://mirror.arizona.edu/ubuntu/|g" \
26+
/etc/apt/sources.list || true
27+
28+
for f in /etc/apt/sources.list.d/*.list; do
29+
sudo sed -i \
30+
-e "s|https\?://azure\.archive\.ubuntu\.com/ubuntu/?|https://mirror.arizona.edu/ubuntu/|g" \
31+
"$f"
32+
done
33+
34+
for f in /etc/apt/sources.list.d/*.sources; do
35+
sudo sed -i \
36+
-e "s|https\?://azure\.archive\.ubuntu\.com/ubuntu/?|https://mirror.arizona.edu/ubuntu/|g" \
37+
-e "s|https\?://azure\.archive\.ubuntu\.com|https://mirror.arizona.edu|g" \
38+
"$f"
39+
done
40+
41+
if grep -qE '^[[:space:]]*https?://azure\.archive\.ubuntu\.com/ubuntu/?' /etc/apt/apt-mirrors.txt; then
42+
sudo sed -i 's|https\?://azure\.archive\.ubuntu\.com/ubuntu/|https://mirror.arizona.edu/ubuntu/|g' /etc/apt/apt-mirrors.txt
43+
fi
1544
- name: install req
1645
run: |
17-
sudo apt-get update
18-
sudo apt-get install --no-install-recommends -y -q nasm gcc-multilib qemu-system-x86 swtpm uuid-dev
46+
export DEBIAN_FRONTEND=noninteractive
47+
sudo apt-get update -o Acquire::Retries=3
48+
sudo apt-get install --no-install-recommends -y -q -o Acquire::Retries=3 nasm gcc-multilib qemu-system-x86 swtpm uuid-dev
1949
- name: setup git
2050
run: |
2151
git config --global user.email "you@example.com"

0 commit comments

Comments
 (0)