Skip to content

Commit 3d86cf8

Browse files
committed
Update CI workflow to use latest Ubuntu and optimize dependency installation
- Changed the runner from ubuntu-20.04 to ubuntu-latest for improved compatibility and support. - Added a container specification to use Ubuntu 20.04. - Updated the dependency installation process to use non-interactive mode and removed unnecessary package lists to streamline the build process.
1 parent d888112 commit 3d86cf8

1 file changed

Lines changed: 9 additions & 3 deletions

File tree

.github/workflows/build-deno-so.yml

Lines changed: 9 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -8,16 +8,22 @@ on:
88
jobs:
99
build-deno-so:
1010
name: Build shared library for Deno
11-
runs-on: ubuntu-20.04
11+
runs-on: ubuntu-latest
12+
13+
container:
14+
image: ubuntu:20.04
1215

1316
steps:
1417
- name: Checkout repository
1518
uses: actions/checkout@v4
1619

1720
- name: Install build dependencies
21+
env:
22+
DEBIAN_FRONTEND: noninteractive
1823
run: |
19-
sudo apt-get update
20-
sudo apt-get install -y ninja-build g++ git
24+
apt-get update
25+
apt-get install -y --no-install-recommends ninja-build g++ git ca-certificates
26+
rm -rf /var/lib/apt/lists/*
2127
2228
- name: Setup CMake >= 3.30
2329
uses: jwlawson/actions-setup-cmake@v2

0 commit comments

Comments
 (0)