@@ -13,7 +13,7 @@ permissions:
1313jobs :
1414 build :
1515
16- runs-on : ${{ matrix.runner }}
16+ runs-on : ubuntu-latest
1717
1818 strategy :
1919 matrix :
@@ -24,19 +24,15 @@ jobs:
2424 - os_flavor : win-x64
2525 arch : x64
2626 archive_ext : zip
27- runner : windows-latest
2827 - os_flavor : linux-x64
2928 arch : x64
3029 archive_ext : tar
31- runner : ubuntu-latest
3230 - os_flavor : osx-x64
3331 arch : x64
3432 archive_ext : tar
35- runner : macos-latest
3633 - os_flavor : osx-arm64
3734 arch : arm64
3835 archive_ext : tar
39- runner : macos-latest
4036
4137 steps :
4238 - uses : actions/checkout@v4
@@ -48,27 +44,17 @@ jobs:
4844 - name : Publish
4945 run : dotnet publish ./${{ matrix.project }}/${{ matrix.project }}.csproj -p:Platform=${{ matrix.arch }} -r ${{ matrix.os_flavor }} -c Release -p:SelfContained=true -p:PublishSingleFile=true -p:PublishReadyToRun=true -p:TrimUnusedDependencies=false -p:DebugType=None -p:DebugSymbols=false -p:AvaloniaUseCompiledBindingsByDefault=true --output ${{ github.workspace }}/artifacts/${{ matrix.project }}/${{ matrix.os_flavor }}-${{ matrix.arch }} -maxcpucount:1
5046
51- - name : Check publish output (Windows)
52- if : ${{ matrix.os_flavor == 'win-x64'}}
53- run : Get-ChildItem -Recurse ${{ github.workspace }}/artifacts/${{ matrix.project }}/
54-
55- - name : Check publish output (Unix)
56- if : ${{ matrix.os_flavor == 'linux-x64' || matrix.os_flavor == 'osx-x64' || matrix.os_flavor == 'osx-arm64'}}
47+ - name : Check publish output
5748 run : ls -laR ${{ github.workspace }}/artifacts/${{ matrix.project }}/
58-
49+
5950 - name : Chmod (Unix)
6051 if : ${{ matrix.os_flavor == 'linux-x64' || matrix.os_flavor == 'osx-x64' || matrix.os_flavor == 'osx-arm64'}}
6152 run : chmod +x ${{ github.workspace }}/artifacts/${{ matrix.project }}/${{ matrix.os_flavor }}-${{ matrix.arch }}/${{ matrix.project_lowercase }}
6253
6354 - name : Compress binaries
6455 run : 7z a ${{ github.workspace }}/${{ matrix.project }}-${{ matrix.os_flavor }}.${{ matrix.archive_ext }} ${{ github.workspace }}/artifacts/${{ matrix.project }}/${{ matrix.os_flavor }}-${{ matrix.arch }}/*
6556
66- - name : List directories and files (Windows)
67- if : ${{ matrix.os_flavor == 'win-x64'}}
68- run : Get-ChildItem -Recurse .
69-
70- - name : List directories and files (Unix)
71- if : ${{ matrix.os_flavor == 'linux-x64' || matrix.os_flavor == 'osx-x64' || matrix.os_flavor == 'osx-arm64'}}
57+ - name : List directories and files
7258 run : find .
7359
7460 - name : Upload Build Artifact
10995 files : |
11096 ${{ github.workspace }}/Repackinator.nfo
11197 ${{ github.workspace }}/README.md
112- ${{ steps.artifacts.outputs.download-path }}/*
98+ ${{ steps.artifacts.outputs.download-path }}/*
0 commit comments