15
15
os : [windows-latest, ubuntu-22.04]
16
16
include :
17
17
- os : windows-latest
18
+ native : win-x64
18
19
arm64 : win-arm64
19
20
- os : ubuntu-22.04
21
+ native : linux-x64
20
22
arm64 : linux-arm64
21
23
22
24
runs-on : ${{ matrix.os }}
@@ -29,13 +31,20 @@ jobs:
29
31
- name : Build/Publish app (native)
30
32
run : dotnet publish -c ${{ matrix.configuration }}
31
33
34
+ - name : Upload Artifact (native)
35
+ uses : actions/upload-artifact@v4
36
+ with :
37
+ name : SkyiFi-Forwarder-${{ matrix.configuration }}-${{ matrix.native }}
38
+ path : ' bin/${{ matrix.configuration }}/net8.0/${{ matrix.native }}/publish/'
39
+ retention-days : 5
40
+
32
41
- name : Install prerequisites for Linux ARM64 cross-compile
33
42
run : |
34
43
sudo dpkg --add-architecture arm64
35
44
sudo bash -c 'cat > /etc/apt/sources.list.d/arm64.list <<EOF
36
- deb [arch=arm64] http://ports.ubuntu.com/ubuntu-ports/ jammy main restricted
37
- deb [arch=arm64] http://ports.ubuntu.com/ubuntu-ports/ jammy -updates main restricted
38
- deb [arch=arm64] http://ports.ubuntu.com/ubuntu-ports/ jammy -backports main restricted universe multiverse
45
+ deb [arch=arm64] http://ports.ubuntu.com/ubuntu-ports/ $(lsb_release -sc 2>/dev/null) main restricted
46
+ deb [arch=arm64] http://ports.ubuntu.com/ubuntu-ports/ $(lsb_release -sc 2>/dev/null) -updates main restricted
47
+ deb [arch=arm64] http://ports.ubuntu.com/ubuntu-ports/ $(lsb_release -sc 2>/dev/null) -backports main restricted universe multiverse
39
48
EOF'
40
49
sudo sed -i -e 's/deb http/deb [arch=amd64] http/g' /etc/apt/sources.list
41
50
sudo sed -i -e 's/deb mirror/deb [arch=amd64] mirror/g' /etc/apt/sources.list
44
53
if : runner.os == 'Linux'
45
54
46
55
- name : Build/Publish app (arm64)
47
- run : dotnet publish -c ${{ matrix.configuration }} -r ${{ matrix.arm64 }}
56
+ run : dotnet publish -c ${{ matrix.configuration }} -r ${{ matrix.arm64 }}
57
+
58
+ - name : Upload Artifact (arm64)
59
+ uses : actions/upload-artifact@v4
60
+ with :
61
+ name : SkyiFi-Forwarder-${{ matrix.configuration }}-${{ matrix.arm64 }}
62
+ path : ' bin/${{ matrix.configuration }}/net8.0/${{ matrix.arm64 }}/publish/'
63
+ retention-days : 5
0 commit comments