From 96a1c972deb85cdc19090a0f913aad45da1a83c8 Mon Sep 17 00:00:00 2001 From: dani Date: Mon, 6 May 2024 03:18:20 +0000 Subject: [PATCH 1/2] Program packaged into tarball before uploaded to artifacts --- .github/workflows/ci.yml | 22 +++++++++++----------- 1 file changed, 11 insertions(+), 11 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 6a911e7e..0988685c 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -2,9 +2,9 @@ name: Continuous Integration on: push: branches: - - develop + - executable pull_request: - branches: [develop] + branches: [executable] workflow_dispatch: jobs: build-windows: @@ -44,13 +44,13 @@ jobs: run: dotnet build -c Release - name: Publish run: dotnet publish src/SourceGit.csproj -c Release -o publish -r osx-x64 -p:PublishAot=true -p:PublishTrimmed=true -p:TrimMode=link --self-contained - - name: Allow Executing File as Program - run: chmod +x publish/Sourcegit + - name: Packing Program + run: tar -cvf sourcegit.osx-x64.tar publish/ - name: Upload Artifact uses: actions/upload-artifact@v4 with: name: sourcegit.osx-x64 - path: publish + path: sourcegit.osx-x64.tar build-macos-arm64: name: Build macOS (Apple Silicon) runs-on: macos-latest @@ -67,13 +67,13 @@ jobs: run: dotnet build -c Release - name: Publish run: dotnet publish src/SourceGit.csproj -c Release -o publish -r osx-arm64 -p:PublishAot=true -p:PublishTrimmed=true -p:TrimMode=link --self-contained - - name: Allow Executing File as Program - run: chmod +x publish/Sourcegit + - name: Packing Program + run: tar -cvf sourcegit.osx-arm64.tar publish/ - name: Upload Artifact uses: actions/upload-artifact@v4 with: name: sourcegit.osx-arm64 - path: publish + path: sourcegit.osx-arm64.tar build-linux: name: Build Linux runs-on: ubuntu-latest @@ -92,10 +92,10 @@ jobs: run: dotnet publish src/SourceGit.csproj -c Release -o publish -r linux-x64 -p:PublishAot=true -p:PublishTrimmed=true -p:TrimMode=link --self-contained - name: Rename Executable File run: mv publish/SourceGit publish/sourcegit - - name: Allow Executing File as Program - run: chmod +x publish/sourcegit + - name: Packing Program + run: tar -cvf sourcegit.linux-x64.tar publish/ - name: Upload Artifact uses: actions/upload-artifact@v4 with: name: sourcegit.linux-x64 - path: publish + path: sourcegit.linux-x64.tar From 9ccd386c8087cf79c671d73b3cd3aa32a08f871a Mon Sep 17 00:00:00 2001 From: dani Date: Mon, 6 May 2024 03:20:32 +0000 Subject: [PATCH 2/2] Switched workflow branch back to develop --- .github/workflows/ci.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 0988685c..6e856ec0 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -2,9 +2,9 @@ name: Continuous Integration on: push: branches: - - executable + - develop pull_request: - branches: [executable] + branches: [develop] workflow_dispatch: jobs: build-windows: