Skip to content

Commit e4061d1

Browse files
committed
Try to use standard runner for performing cvd unit tests
1 parent 77812d6 commit e4061d1

2 files changed

Lines changed: 24 additions & 12 deletions

File tree

.github/workflows/presubmit.yaml

Lines changed: 12 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -157,18 +157,24 @@ jobs:
157157
popd
158158
done
159159
run-cvd-unit-tests:
160-
runs-on: ubuntu-22.04-4core
161-
container:
162-
image: debian@sha256:9258a75a7e4323c9e5562b361effc84ee747920116d8adfc98a465a5cdc9150e # debian:bookworm-20250407 (amd64)
160+
runs-on: ubuntu-24.04
163161
steps:
162+
- name: Free disk space
163+
uses: jlumbroso/free-disk-space@v1.3.1
164+
with:
165+
large-packages: false
166+
swap-storage: false
164167
- name: Checkout repository
165168
uses: actions/checkout@a81bbbf8298c0fa03ea29cdc473d45769f953675 # aka v2
166169
- name: Setup apt
167-
run: apt update -y && apt upgrade -y
170+
run: sudo apt-get update -y && sudo apt-get upgrade -y
168171
- name: Install dependencies
169-
run: apt install -y git clang libcurl4-openssl-dev clang-tidy libtinfo5 xxd cmake liblzma-dev libvpx-dev libopus-dev libaom-dev autoconf libtool yq
172+
run: |
173+
sudo apt-get install -y git clang libcurl4-openssl-dev clang-tidy xxd cmake liblzma-dev libvpx-dev libopus-dev libaom-dev autoconf libtool
174+
wget http://security.ubuntu.com/ubuntu/pool/universe/n/ncurses/libtinfo5_6.3-2_amd64.deb
175+
sudo dpkg -i libtinfo5_6.3-2_amd64.deb
170176
- name: Install bazel
171-
run: bash tools/buildutils/installbazel.sh
177+
run: sudo bash tools/buildutils/installbazel.sh
172178
- name: Load cache config
173179
run: |
174180
cat .config/cache-config.env >> $GITHUB_ENV

.github/workflows/update-bazel-cache.yaml

Lines changed: 12 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -10,18 +10,24 @@ on:
1010
jobs:
1111
update-cvd-test-bazel-cache:
1212
if: ${{ github.repository_owner == 'google' }}
13-
runs-on: ubuntu-22.04-4core
14-
container:
15-
image: debian@sha256:9258a75a7e4323c9e5562b361effc84ee747920116d8adfc98a465a5cdc9150e # debian:bookworm-20250407 (amd64)
13+
runs-on: ubuntu-24.04
1614
steps:
15+
- name: Free disk space
16+
uses: jlumbroso/free-disk-space@v1.3.1
17+
with:
18+
large-packages: false
19+
swap-storage: false
1720
- name: Checkout repository
1821
uses: actions/checkout@a81bbbf8298c0fa03ea29cdc473d45769f953675 # aka v2
1922
- name: Setup apt
20-
run: apt update -y && apt upgrade -y
23+
run: sudo apt-get update -y && sudo apt-get upgrade -y
2124
- name: Install dependencies
22-
run: apt install -y git clang libcurl4-openssl-dev clang-tidy libtinfo5 xxd cmake liblzma-dev libvpx-dev libopus-dev libaom-dev autoconf libtool yq
25+
run: |
26+
sudo apt-get install -y git clang libcurl4-openssl-dev clang-tidy xxd cmake liblzma-dev libvpx-dev libopus-dev libaom-dev autoconf libtool
27+
wget http://security.ubuntu.com/ubuntu/pool/universe/n/ncurses/libtinfo5_6.3-2_amd64.deb
28+
sudo dpkg -i libtinfo5_6.3-2_amd64.deb
2329
- name: Install bazel
24-
run: bash tools/buildutils/installbazel.sh
30+
run: sudo bash tools/buildutils/installbazel.sh
2531
- name: Load cache config
2632
run: |
2733
cat .config/cache-config.env >> $GITHUB_ENV

0 commit comments

Comments
 (0)