7
7
matrix :
8
8
include :
9
9
- name : Windows x64
10
- os : windows-2019
10
+ os : windows-2022
11
11
runtime : win-x64
12
12
- name : Windows ARM64
13
- os : windows-2019
13
+ os : windows-2022
14
14
runtime : win-arm64
15
15
- name : macOS (Intel)
16
16
os : macos-13
31
31
container : ${{ matrix.container || '' }}
32
32
steps :
33
33
- name : Install common CLI tools
34
- if : ${{ startsWith(matrix.runtime, 'linux-') }}
34
+ if : startsWith(matrix.runtime, 'linux-')
35
35
run : |
36
36
export DEBIAN_FRONTEND=noninteractive
37
37
ln -fs /usr/share/zoneinfo/Etc/UTC /etc/localtime
45
45
with :
46
46
dotnet-version : 9.0.x
47
47
- name : Configure arm64 packages
48
- if : ${{ matrix.runtime == 'linux-arm64' }}
48
+ if : matrix.runtime == 'linux-arm64'
49
49
run : |
50
50
sudo dpkg --add-architecture arm64
51
51
echo 'deb [arch=arm64] http://ports.ubuntu.com/ubuntu-ports/ focal main restricted
55
55
sudo sed -i -e 's/^deb http/deb [arch=amd64] http/g' /etc/apt/sources.list
56
56
sudo sed -i -e 's/^deb mirror/deb [arch=amd64] mirror/g' /etc/apt/sources.list
57
57
- name : Install cross-compiling dependencies
58
- if : ${{ matrix.runtime == 'linux-arm64' }}
58
+ if : matrix.runtime == 'linux-arm64'
59
59
run : |
60
60
sudo apt-get update
61
61
sudo apt-get install -y llvm gcc-aarch64-linux-gnu
@@ -64,10 +64,10 @@ jobs:
64
64
- name : Publish
65
65
run : dotnet publish src/SourceGit.csproj -c Release -o publish -r ${{ matrix.runtime }}
66
66
- name : Rename executable file
67
- if : ${{ startsWith(matrix.runtime, 'linux-') }}
67
+ if : startsWith(matrix.runtime, 'linux-')
68
68
run : mv publish/SourceGit publish/sourcegit
69
69
- name : Tar artifact
70
- if : ${{ startsWith(matrix.runtime, 'linux-') || startsWith(matrix.runtime, 'osx-') }}
70
+ if : startsWith(matrix.runtime, 'linux-') || startsWith(matrix.runtime, 'osx-')
71
71
run : |
72
72
tar -cvf "sourcegit.${{ matrix.runtime }}.tar" -C publish .
73
73
rm -r publish/*
0 commit comments