|
8 | 8 | build: |
9 | 9 | timeout-minutes: 120 |
10 | 10 | name: Tests (ARM64) |
11 | | - runs-on: ${{ github.event_name == 'pull_request' && 'ubuntu-latest' || 'bookworm-arm64' }} |
| 11 | + runs-on: 'bookworm-arm64' |
12 | 12 | steps: |
13 | 13 | - name: Fix workspace permissions |
14 | | - if: ${{ github.event_name != 'pull_request' }} |
15 | 14 | run: sudo chown -R runner:runner ${GITHUB_WORKSPACE} |
16 | 15 | - name: Code checkout |
17 | | - if: ${{ github.event_name != 'pull_request' }} |
18 | 16 | uses: actions/checkout@v6 |
19 | 17 | with: |
20 | 18 | fetch-depth: 0 |
21 | 19 | - name: Run unit tests (musl) |
22 | | - if: ${{ github.event_name != 'pull_request' }} |
23 | 20 | run: scripts/dev_cli.sh tests --unit --libc musl |
24 | 21 | - name: Load openvswitch module |
25 | | - if: ${{ github.event_name != 'pull_request' }} |
26 | 22 | run: sudo modprobe openvswitch |
27 | 23 | - name: Run integration tests (musl) |
28 | | - if: ${{ github.event_name != 'pull_request' }} |
29 | 24 | timeout-minutes: 60 |
30 | 25 | run: scripts/dev_cli.sh tests --integration --libc musl |
31 | 26 | - name: Install Azure CLI |
32 | | - if: ${{ github.event_name != 'pull_request' }} |
33 | 27 | run: | |
34 | 28 | sudo apt install -y ca-certificates curl apt-transport-https lsb-release gnupg |
35 | 29 | curl -sL https://packages.microsoft.com/keys/microsoft.asc | gpg --dearmor | sudo tee /etc/apt/trusted.gpg.d/microsoft.gpg > /dev/null |
36 | 30 | echo "deb [arch=arm64] https://packages.microsoft.com/repos/azure-cli/ bookworm main" | sudo tee /etc/apt/sources.list.d/azure-cli.list |
37 | 31 | sudo apt update |
38 | 32 | sudo apt install -y azure-cli |
39 | 33 | - name: Download Windows image |
40 | | - if: ${{ github.event_name != 'pull_request' }} |
41 | 34 | shell: bash |
42 | 35 | run: | |
43 | 36 | IMG_BASENAME=windows-11-iot-enterprise-aarch64.raw |
|
54 | 47 | az storage blob download --container-name private-images --file "$IMG_GZ_PATH" --name "$IMG_GZ_BLOB_NAME" --connection-string "${{ secrets.CH_PRIVATE_IMAGES }}" |
55 | 48 | gzip -d $IMG_GZ_PATH |
56 | 49 | - name: Run Windows guest integration tests |
57 | | - if: ${{ github.event_name != 'pull_request' }} |
58 | 50 | timeout-minutes: 30 |
59 | 51 | run: scripts/dev_cli.sh tests --integration-windows --libc musl |
60 | | - - name: Skipping build for PR |
61 | | - if: ${{ github.event_name == 'pull_request' }} |
62 | | - run: echo "Skipping build for PR" |
0 commit comments