-
Notifications
You must be signed in to change notification settings - Fork 175
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: Enable builds on LINUX with dotnet 🥳🐧
- Loading branch information
Showing
18 changed files
with
536 additions
and
69 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -3,13 +3,13 @@ name: .NET Build and Publish | |
on: | ||
push: | ||
branches: ["main", "dev", "dui3/alpha"] | ||
pull_request: | ||
pull_request: | ||
branches: | ||
- dui3/alpha | ||
|
||
jobs: | ||
build-and-publish: | ||
runs-on: windows-latest | ||
runs-on: ubuntu-latest | ||
|
||
steps: | ||
- name: Checkout | ||
|
@@ -26,41 +26,38 @@ jobs: | |
uses: actions/cache@v4 | ||
with: | ||
path: ~/.nuget/packages | ||
key: ${{ runner.os }}-nuget-${{ hashFiles('**/packages.lock.json') }} | ||
key: ${{ runner.os }}-nuget-${{ hashFiles('**/packages.lock.json') }} | ||
|
||
- name : Install GitVersion | ||
- name: Install GitVersion | ||
uses: gittools/actions/gitversion/[email protected] | ||
with: | ||
versionSpec: '5.x' | ||
versionSpec: "5.x" | ||
|
||
- name: Determine Version | ||
id: version | ||
uses: gittools/actions/gitversion/[email protected] | ||
|
||
- name: Format | ||
run: ./build.ps1 format | ||
run: ./build.sh format | ||
|
||
- name: Restore | ||
run: ./build.ps1 restore | ||
|
||
- name: Add msbuild to PATH | ||
uses: microsoft/setup-msbuild@v2 | ||
run: ./build.sh restore | ||
|
||
- name: Build | ||
env: | ||
VERSION: ${{ env.fullSemVer }} | ||
FILE_VERSION: ${{ env.assemblySemFileVer }} | ||
run: ./build.ps1 build | ||
run: ./build.sh build | ||
|
||
- name: Pack | ||
run: ./build.ps1 zip | ||
run: ./build.sh zip | ||
|
||
- name: Upload artifacts | ||
uses: actions/upload-artifact@v4 | ||
with: | ||
name: output-${{ env.fullSemVer }} | ||
path: output/*.* | ||
compression-level: 0 # no compression | ||
|
||
- name: Trigger Build Installers | ||
run: ./build.ps1 build-installers ${{ secrets.CONNECTORS_GH_TOKEN }} ${{ github.run_id }} ${{ env.fullSemVer }} | ||
run: ./build.sh build-installers ${{ secrets.CONNECTORS_GH_TOKEN }} ${{ github.run_id }} ${{ env.fullSemVer }} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.