@@ -23,42 +23,23 @@ jobs:
23
23
runtime : linux-x64
24
24
container : ubuntu:20.04
25
25
- name : Linux (arm64)
26
- os : ubuntu-latest
26
+ os : ubuntu-24.04-arm
27
27
runtime : linux-arm64
28
- container : ubuntu:20.04
29
28
name : Build ${{ matrix.name }}
30
29
runs-on : ${{ matrix.os }}
31
30
container : ${{ matrix.container || '' }}
32
31
steps :
33
32
- name : Install common CLI tools
34
33
if : ${{ startsWith(matrix.runtime, 'linux-') }}
35
34
run : |
36
- export DEBIAN_FRONTEND=noninteractive
37
- ln -fs /usr/share/zoneinfo/Etc/UTC /etc/localtime
38
35
apt-get update
39
- apt-get install -y sudo
40
- sudo apt-get install -y curl wget git unzip zip libicu66 tzdata clang
36
+ apt-get install -y curl wget git unzip zip libicu66 tzdata clang
41
37
- name : Checkout sources
42
38
uses : actions/checkout@v4
43
39
- name : Setup .NET
44
40
uses : actions/setup-dotnet@v4
45
41
with :
46
42
dotnet-version : 9.0.x
47
- - name : Configure arm64 packages
48
- if : ${{ matrix.runtime == 'linux-arm64' }}
49
- run : |
50
- sudo dpkg --add-architecture arm64
51
- echo 'deb [arch=arm64] http://ports.ubuntu.com/ubuntu-ports/ focal main restricted
52
- deb [arch=arm64] http://ports.ubuntu.com/ubuntu-ports/ focal-updates main restricted
53
- deb [arch=arm64] http://ports.ubuntu.com/ubuntu-ports/ focal-backports main restricted' \
54
- | sudo tee /etc/apt/sources.list.d/arm64.list
55
- sudo sed -i -e 's/^deb http/deb [arch=amd64] http/g' /etc/apt/sources.list
56
- sudo sed -i -e 's/^deb mirror/deb [arch=amd64] mirror/g' /etc/apt/sources.list
57
- - name : Install cross-compiling dependencies
58
- if : ${{ matrix.runtime == 'linux-arm64' }}
59
- run : |
60
- sudo apt-get update
61
- sudo apt-get install -y llvm gcc-aarch64-linux-gnu zlib1g-dev:arm64
62
43
- name : Build
63
44
run : dotnet build -c Release
64
45
- name : Publish
0 commit comments