Skip to content

Commit 478d52b

Browse files
authored
Merge pull request #111 from dangreene0/develop
Fixed Linux and macOS not being executable
2 parents b651835 + 9ccd386 commit 478d52b

File tree

1 file changed

+9
-9
lines changed

1 file changed

+9
-9
lines changed

.github/workflows/ci.yml

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -44,13 +44,13 @@ jobs:
4444
run: dotnet build -c Release
4545
- name: Publish
4646
run: dotnet publish src/SourceGit.csproj -c Release -o publish -r osx-x64 -p:PublishAot=true -p:PublishTrimmed=true -p:TrimMode=link --self-contained
47-
- name: Allow Executing File as Program
48-
run: chmod +x publish/Sourcegit
47+
- name: Packing Program
48+
run: tar -cvf sourcegit.osx-x64.tar publish/
4949
- name: Upload Artifact
5050
uses: actions/upload-artifact@v4
5151
with:
5252
name: sourcegit.osx-x64
53-
path: publish
53+
path: sourcegit.osx-x64.tar
5454
build-macos-arm64:
5555
name: Build macOS (Apple Silicon)
5656
runs-on: macos-latest
@@ -67,13 +67,13 @@ jobs:
6767
run: dotnet build -c Release
6868
- name: Publish
6969
run: dotnet publish src/SourceGit.csproj -c Release -o publish -r osx-arm64 -p:PublishAot=true -p:PublishTrimmed=true -p:TrimMode=link --self-contained
70-
- name: Allow Executing File as Program
71-
run: chmod +x publish/Sourcegit
70+
- name: Packing Program
71+
run: tar -cvf sourcegit.osx-arm64.tar publish/
7272
- name: Upload Artifact
7373
uses: actions/upload-artifact@v4
7474
with:
7575
name: sourcegit.osx-arm64
76-
path: publish
76+
path: sourcegit.osx-arm64.tar
7777
build-linux:
7878
name: Build Linux
7979
runs-on: ubuntu-latest
@@ -92,10 +92,10 @@ jobs:
9292
run: dotnet publish src/SourceGit.csproj -c Release -o publish -r linux-x64 -p:PublishAot=true -p:PublishTrimmed=true -p:TrimMode=link --self-contained
9393
- name: Rename Executable File
9494
run: mv publish/SourceGit publish/sourcegit
95-
- name: Allow Executing File as Program
96-
run: chmod +x publish/sourcegit
95+
- name: Packing Program
96+
run: tar -cvf sourcegit.linux-x64.tar publish/
9797
- name: Upload Artifact
9898
uses: actions/upload-artifact@v4
9999
with:
100100
name: sourcegit.linux-x64
101-
path: publish
101+
path: sourcegit.linux-x64.tar

0 commit comments

Comments
 (0)