mirror of
https://github.com/sourcegit-scm/sourcegit.git
synced 2024-12-23 20:47:25 -08:00
Program packaged into tarball before uploaded to artifacts
This commit is contained in:
parent
c7784b05cd
commit
96a1c972de
1 changed files with 11 additions and 11 deletions
22
.github/workflows/ci.yml
vendored
22
.github/workflows/ci.yml
vendored
|
@ -2,9 +2,9 @@ name: Continuous Integration
|
||||||
on:
|
on:
|
||||||
push:
|
push:
|
||||||
branches:
|
branches:
|
||||||
- develop
|
- executable
|
||||||
pull_request:
|
pull_request:
|
||||||
branches: [develop]
|
branches: [executable]
|
||||||
workflow_dispatch:
|
workflow_dispatch:
|
||||||
jobs:
|
jobs:
|
||||||
build-windows:
|
build-windows:
|
||||||
|
@ -44,13 +44,13 @@ jobs:
|
||||||
run: dotnet build -c Release
|
run: dotnet build -c Release
|
||||||
- name: Publish
|
- 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
|
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
|
- name: Packing Program
|
||||||
run: chmod +x publish/Sourcegit
|
run: tar -cvf sourcegit.osx-x64.tar publish/
|
||||||
- name: Upload Artifact
|
- name: Upload Artifact
|
||||||
uses: actions/upload-artifact@v4
|
uses: actions/upload-artifact@v4
|
||||||
with:
|
with:
|
||||||
name: sourcegit.osx-x64
|
name: sourcegit.osx-x64
|
||||||
path: publish
|
path: sourcegit.osx-x64.tar
|
||||||
build-macos-arm64:
|
build-macos-arm64:
|
||||||
name: Build macOS (Apple Silicon)
|
name: Build macOS (Apple Silicon)
|
||||||
runs-on: macos-latest
|
runs-on: macos-latest
|
||||||
|
@ -67,13 +67,13 @@ jobs:
|
||||||
run: dotnet build -c Release
|
run: dotnet build -c Release
|
||||||
- name: Publish
|
- 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
|
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
|
- name: Packing Program
|
||||||
run: chmod +x publish/Sourcegit
|
run: tar -cvf sourcegit.osx-arm64.tar publish/
|
||||||
- name: Upload Artifact
|
- name: Upload Artifact
|
||||||
uses: actions/upload-artifact@v4
|
uses: actions/upload-artifact@v4
|
||||||
with:
|
with:
|
||||||
name: sourcegit.osx-arm64
|
name: sourcegit.osx-arm64
|
||||||
path: publish
|
path: sourcegit.osx-arm64.tar
|
||||||
build-linux:
|
build-linux:
|
||||||
name: Build Linux
|
name: Build Linux
|
||||||
runs-on: ubuntu-latest
|
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
|
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
|
- name: Rename Executable File
|
||||||
run: mv publish/SourceGit publish/sourcegit
|
run: mv publish/SourceGit publish/sourcegit
|
||||||
- name: Allow Executing File as Program
|
- name: Packing Program
|
||||||
run: chmod +x publish/sourcegit
|
run: tar -cvf sourcegit.linux-x64.tar publish/
|
||||||
- name: Upload Artifact
|
- name: Upload Artifact
|
||||||
uses: actions/upload-artifact@v4
|
uses: actions/upload-artifact@v4
|
||||||
with:
|
with:
|
||||||
name: sourcegit.linux-x64
|
name: sourcegit.linux-x64
|
||||||
path: publish
|
path: sourcegit.linux-x64.tar
|
||||||
|
|
Loading…
Reference in a new issue