1010 PROJECT_PATH : src/ZenonCli/ZenonCli.csproj
1111
1212jobs :
13+ build-macos :
14+ runs-on : macos-12
15+
16+ steps :
17+ - name : Checkout
18+ uses : actions/checkout@v3
19+ with :
20+ fetch-depth : 0
21+ - name : Setup .NET
22+ uses : actions/setup-dotnet@v3
23+ with :
24+ dotnet-version : 6.0.x
25+ - name : Install Nerdbank Git versioning
26+ run : dotnet tool install -g nbgv
27+ - name : Setup Nerdbank Git versioning
28+ run : nbgv install
29+ - name : Restore
30+ run : dotnet restore $PROJECT_PATH --runtime osx-x64
31+ - name : Build
32+ run : dotnet build $PROJECT_PATH --configuration Release --runtime osx-x64 --no-self-contained --no-restore
33+ - name : Test
34+ run : dotnet test $PROJECT_PATH --no-restore --no-build --verbosity normal
35+ - name : Publish
36+ run : dotnet publish $PROJECT_PATH --configuration Release --runtime osx-x64 --no-self-contained --no-restore --no-build
37+ - name : Package into zip
38+ run : |
39+ cd bin/ZenonCli/release/net6.0/osx-x64/publish
40+ zip -r ../../../../../../znn-cli-dotnet-macos-universal.zip *
41+ - name : Upload artifacts
42+ uses : actions/upload-artifact@v3
43+ with :
44+ name : macos-artifacts
45+ path : znn-cli-dotnet-macos-universal.zip
46+
1347 build-windows :
1448 runs-on : windows-latest
1549
6397 run : dotnet test $PROJECT_PATH --no-restore --no-build --verbosity normal
6498 - name : Publish
6599 run : dotnet publish $PROJECT_PATH --configuration Release --runtime linux-x64 --no-self-contained --no-restore --no-build
66- - name : Package zip
100+ - name : Package into zip
67101 run : |
68102 cd bin/ZenonCli/release/net6.0/linux-x64/publish
69103 zip -r ../../../../../../znn-cli-dotnet-linux-amd64.zip *
74108 path : znn-cli-dotnet-linux-amd64.zip
75109
76110 make-release :
77- needs : [build-windows, build-linux]
111+ needs : [build-windows, build-linux, build-macos ]
78112 runs-on : ubuntu-latest
79113 steps :
80114 - name : Checkout
@@ -109,6 +143,10 @@ jobs:
109143 echo "EOFMARKER" >> ${GITHUB_ENV}
110144 - name : Prepare releases directory
111145 run : mkdir releases
146+ - name : Download macOS artifacts
147+ uses : actions/download-artifact@v3
148+ with :
149+ name : macos-artifacts
112150 - name : Download Windows artifacts
113151 uses : actions/download-artifact@v3
114152 with :
@@ -119,6 +157,7 @@ jobs:
119157 name : linux-artifacts
120158 - name : Prepare releases
121159 run : |
160+ cp znn-cli-dotnet-macos-universal.zip releases/
122161 cp znn-cli-dotnet-windows-amd64.zip releases/
123162 cp znn-cli-dotnet-linux-amd64.zip releases/
124163 - name : Generate checksums
0 commit comments