Skip to content

Commit dfcab26

Browse files
authored
Merge pull request #21 from boriel-basic/feature/ci_cd_pipeline
Feature/ci cd pipeline
2 parents 83be4fd + 3ce5603 commit dfcab26

File tree

1 file changed

+21
-5
lines changed

1 file changed

+21
-5
lines changed

.github/workflows/build.yaml

Lines changed: 21 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -29,14 +29,30 @@ jobs:
2929
- name: Build project
3030
run: dotnet build ZXBasicStudio.sln --configuration Release --no-restore
3131

32-
- name: Publish single executable
32+
- name: Publish for Linux
3333
run: |
3434
dotnet publish ZXBStudio/ZXBasicStudio.csproj -c Release -r linux-x64 --self-contained true -p:PublishSingleFile=true -o out
3535
36-
- name: Pack files
37-
run: zip -9 -r ZXBasicStudio-linux-x64.zip ~/work/ZXBasicStudio/ZXBasicStudio/out/
38-
36+
- name: Publish for Windows
37+
run: |
38+
dotnet publish ZXBStudio/ZXBasicStudio.csproj -c Release -r win-x64 --self-contained true -p:PublishSingleFile=true -o out-win
39+
40+
- name: Publish for Mac
41+
run: |
42+
dotnet publish ZXBStudio/ZXBasicStudio.csproj -c Release -r osx-x64 --self-contained true -p:PublishSingleFile=true -o out-mac
43+
3944
- uses: actions/upload-artifact@v4
4045
with:
4146
name: ZXBasicStudio-linux-x64
42-
path: ZXBasicStudio-linux-x64.zip
47+
path: ~/work/ZXBasicStudio/ZXBasicStudio/out/
48+
49+
- uses: actions/upload-artifact@v4
50+
with:
51+
name: ZXBasicStudio-win-x64
52+
path: ~/work/ZXBasicStudio/ZXBasicStudio/out-win/
53+
54+
- uses: actions/upload-artifact@v4
55+
with:
56+
name: ZXBasicStudio-osx-x64
57+
path: ~/work/ZXBasicStudio/ZXBasicStudio/out-mac/
58+

0 commit comments

Comments
 (0)