Skip to content

Commit acf2034

Browse files
authored
Update HIL workflow to use ubuntu-22.04, build in container to resolve GLIBC errors (#791)
1 parent 1b23853 commit acf2034

File tree

1 file changed

+26
-11
lines changed

1 file changed

+26
-11
lines changed

.github/workflows/hil.yml

Lines changed: 26 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -29,20 +29,26 @@ concurrency:
2929
jobs:
3030
build-espflash:
3131
name: Build espflash
32-
runs-on: ubuntu-20.04
32+
runs-on: ubuntu-22.04
33+
container:
34+
image: ubuntu:20.04
35+
3336
steps:
3437
- uses: actions/checkout@v4
3538
with:
3639
repository: ${{ github.event.inputs.repository || github.repository }}
3740
ref: ${{ github.event.inputs.branch || github.ref }}
3841

39-
- uses: ./.github/actions/setup-target
40-
with:
41-
arch: x86_64
42-
target: x86_64-unknown-linux-gnu
42+
- name: Install dependencies
43+
env:
44+
DEBIAN_FRONTEND: noninteractive
45+
run: apt-get update && apt-get -y install curl musl-tools pkg-config
46+
47+
- name: Install toolchain
48+
run: curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh -s -- -y
4349

4450
- name: Build espflash
45-
run: cargo build --release
51+
run: $HOME/.cargo/bin/cargo build --release
4652
working-directory: espflash
4753

4854
- uses: actions/upload-artifact@v4
@@ -52,11 +58,22 @@ jobs:
5258
if-no-files-found: error
5359

5460
run-target:
55-
name: ${{ matrix.board.mcu }}${{ matrix.board.freq }}
5661
if: github.repository_owner == 'esp-rs'
62+
name: ${{ matrix.board.mcu }}${{ matrix.board.freq }}
5763
needs: build-espflash
58-
runs-on: [self-hosted, linux, x64, "${{ matrix.board.mcu }}${{ matrix.board.freq }}"]
64+
runs-on:
65+
[
66+
self-hosted,
67+
linux,
68+
x64,
69+
"${{ matrix.board.mcu }}${{ matrix.board.freq }}",
70+
]
71+
72+
env:
73+
ESPFLASH_PORT: /dev/serial_ports/${{ matrix.board.mcu }}
74+
5975
strategy:
76+
fail-fast: false
6077
matrix:
6178
board:
6279
- mcu: esp32
@@ -68,9 +85,7 @@ jobs:
6885
- mcu: esp32h2
6986
- mcu: esp32s2
7087
- mcu: esp32s3
71-
fail-fast: false
72-
env:
73-
ESPFLASH_PORT: /dev/serial_ports/${{ matrix.board.mcu }}
88+
7489
steps:
7590
- uses: actions/checkout@v4
7691

0 commit comments

Comments
 (0)