Skip to content

Commit 991ebe4

Browse files
authored
ci: set ubuntu:20.04 (#1056)
1 parent fb8d4a2 commit 991ebe4

File tree

1 file changed

+14
-3
lines changed

1 file changed

+14
-3
lines changed

.github/workflows/build.yml

Lines changed: 14 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -19,14 +19,25 @@ jobs:
1919
os: macos-latest
2020
runtime: osx-arm64
2121
- name : Linux
22-
os: ubuntu-20.04
22+
os: ubuntu-latest
2323
runtime: linux-x64
24+
container: ubuntu:20.04
2425
- name : Linux (arm64)
25-
os: ubuntu-20.04
26+
os: ubuntu-latest
2627
runtime: linux-arm64
28+
container: ubuntu:20.04
2729
name: Build ${{ matrix.name }}
2830
runs-on: ${{ matrix.os }}
31+
container: ${{ matrix.container || '' }}
2932
steps:
33+
- name: Install common CLI tools
34+
if: ${{ startsWith(matrix.runtime, 'linux-') }}
35+
run: |
36+
export DEBIAN_FRONTEND=noninteractive
37+
ln -fs /usr/share/zoneinfo/Etc/UTC /etc/localtime
38+
apt-get update
39+
apt-get install -y sudo
40+
sudo apt-get install -y curl wget git unzip zip libicu66 tzdata clang
3041
- name: Checkout sources
3142
uses: actions/checkout@v4
3243
- name: Setup .NET
@@ -47,7 +58,7 @@ jobs:
4758
if: ${{ matrix.runtime == 'linux-arm64' }}
4859
run: |
4960
sudo apt-get update
50-
sudo apt-get install clang llvm gcc-aarch64-linux-gnu zlib1g-dev:arm64
61+
sudo apt-get install -y llvm gcc-aarch64-linux-gnu zlib1g-dev:arm64
5162
- name: Build
5263
run: dotnet build -c Release
5364
- name: Publish

0 commit comments

Comments
 (0)