77 matrix :
88 include :
99 - name : Windows x64
10- os : windows-2019
10+ os : windows-2022
1111 runtime : win-x64
1212 - name : Windows ARM64
13- os : windows-2019
13+ os : windows-2022
1414 runtime : win-arm64
1515 - name : macOS (Intel)
1616 os : macos-13
3131 container : ${{ matrix.container || '' }}
3232 steps :
3333 - name : Install common CLI tools
34- if : ${{ startsWith(matrix.runtime, 'linux-') }}
34+ if : startsWith(matrix.runtime, 'linux-')
3535 run : |
3636 export DEBIAN_FRONTEND=noninteractive
3737 ln -fs /usr/share/zoneinfo/Etc/UTC /etc/localtime
4545 with :
4646 dotnet-version : 9.0.x
4747 - name : Configure arm64 packages
48- if : ${{ matrix.runtime == 'linux-arm64' }}
48+ if : matrix.runtime == 'linux-arm64'
4949 run : |
5050 sudo dpkg --add-architecture arm64
5151 echo 'deb [arch=arm64] http://ports.ubuntu.com/ubuntu-ports/ focal main restricted
5555 sudo sed -i -e 's/^deb http/deb [arch=amd64] http/g' /etc/apt/sources.list
5656 sudo sed -i -e 's/^deb mirror/deb [arch=amd64] mirror/g' /etc/apt/sources.list
5757 - name : Install cross-compiling dependencies
58- if : ${{ matrix.runtime == 'linux-arm64' }}
58+ if : matrix.runtime == 'linux-arm64'
5959 run : |
6060 sudo apt-get update
6161 sudo apt-get install -y llvm gcc-aarch64-linux-gnu
@@ -64,10 +64,10 @@ jobs:
6464 - name : Publish
6565 run : dotnet publish src/SourceGit.csproj -c Release -o publish -r ${{ matrix.runtime }}
6666 - name : Rename executable file
67- if : ${{ startsWith(matrix.runtime, 'linux-') }}
67+ if : startsWith(matrix.runtime, 'linux-')
6868 run : mv publish/SourceGit publish/sourcegit
6969 - name : Tar artifact
70- if : ${{ startsWith(matrix.runtime, 'linux-') || startsWith(matrix.runtime, 'osx-') }}
70+ if : startsWith(matrix.runtime, 'linux-') || startsWith(matrix.runtime, 'osx-')
7171 run : |
7272 tar -cvf "sourcegit.${{ matrix.runtime }}.tar" -C publish .
7373 rm -r publish/*
0 commit comments