2024-03-03 13:11:25 -08:00
|
|
|
name: Continuous Integration
|
|
|
|
on:
|
|
|
|
push:
|
|
|
|
branches:
|
2024-04-08 23:58:12 -07:00
|
|
|
- develop
|
2024-03-03 13:11:25 -08:00
|
|
|
pull_request:
|
2024-04-08 23:58:12 -07:00
|
|
|
branches: [develop]
|
2024-03-04 20:07:15 -08:00
|
|
|
workflow_dispatch:
|
2024-03-03 13:11:25 -08:00
|
|
|
jobs:
|
2024-04-28 23:22:37 -07:00
|
|
|
build-windows:
|
|
|
|
name: Build Windows x64
|
|
|
|
runs-on: windows-latest
|
2024-03-03 13:11:25 -08:00
|
|
|
steps:
|
|
|
|
- name: Checkout sources
|
|
|
|
uses: actions/checkout@v4
|
|
|
|
with:
|
|
|
|
fetch-depth: 0
|
|
|
|
- name: Setup .NET
|
|
|
|
uses: actions/setup-dotnet@v4
|
|
|
|
with:
|
|
|
|
dotnet-version: 8.0.x
|
|
|
|
- name: Build
|
|
|
|
run: dotnet build -c Release
|
|
|
|
- name: Publish
|
2024-04-28 23:22:37 -07:00
|
|
|
run: dotnet publish src/SourceGit.csproj -c Release -o publish -r win-x64 -p:PublishAot=true -p:PublishTrimmed=true -p:TrimMode=link --self-contained
|
2024-03-03 13:22:26 -08:00
|
|
|
- name: Upload Artifact
|
|
|
|
uses: actions/upload-artifact@v4
|
|
|
|
with:
|
2024-04-28 23:22:37 -07:00
|
|
|
name: sourcegit.win-x64
|
|
|
|
path: publish
|
|
|
|
build-macos-intel:
|
|
|
|
name: Build macOS (Intel)
|
|
|
|
runs-on: macos-latest
|
|
|
|
steps:
|
|
|
|
- name: Checkout sources
|
|
|
|
uses: actions/checkout@v4
|
|
|
|
with:
|
|
|
|
fetch-depth: 0
|
|
|
|
- name: Setup .NET
|
|
|
|
uses: actions/setup-dotnet@v4
|
|
|
|
with:
|
|
|
|
dotnet-version: 8.0.x
|
|
|
|
- name: Build
|
|
|
|
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: Upload Artifact
|
|
|
|
uses: actions/upload-artifact@v4
|
|
|
|
with:
|
|
|
|
name: sourcegit.osx-x64
|
|
|
|
path: publish
|
|
|
|
build-macos-arm64:
|
|
|
|
name: Build macOS (Apple Silicon)
|
|
|
|
runs-on: macos-latest
|
|
|
|
steps:
|
|
|
|
- name: Checkout sources
|
|
|
|
uses: actions/checkout@v4
|
|
|
|
with:
|
|
|
|
fetch-depth: 0
|
|
|
|
- name: Setup .NET
|
|
|
|
uses: actions/setup-dotnet@v4
|
|
|
|
with:
|
|
|
|
dotnet-version: 8.0.x
|
|
|
|
- name: Build
|
|
|
|
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: Upload Artifact
|
|
|
|
uses: actions/upload-artifact@v4
|
|
|
|
with:
|
|
|
|
name: sourcegit.osx-arm64
|
|
|
|
path: publish
|
|
|
|
build-linux:
|
|
|
|
name: Build Linux
|
|
|
|
runs-on: ubuntu-latest
|
|
|
|
steps:
|
|
|
|
- name: Checkout sources
|
|
|
|
uses: actions/checkout@v4
|
|
|
|
with:
|
|
|
|
fetch-depth: 0
|
|
|
|
- name: Setup .NET
|
|
|
|
uses: actions/setup-dotnet@v4
|
|
|
|
with:
|
|
|
|
dotnet-version: 8.0.x
|
|
|
|
- name: Build
|
|
|
|
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: Rename Executable File
|
|
|
|
run: mv publish/SourceGit publish/sourcegit
|
|
|
|
- name: Upload Artifact
|
|
|
|
uses: actions/upload-artifact@v4
|
|
|
|
with:
|
|
|
|
name: sourcegit.linux-x64
|
2024-04-02 05:05:33 -07:00
|
|
|
path: publish
|