This repository has been archived by the owner on Oct 24, 2024. It is now read-only.
Commit for v1.0.1 #3
Workflow file for this run
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
# yaml-language-server: $schema=https://json.schemastore.org/github-workflow | |
name: Configurator / Create artifacts | |
on: | |
push: | |
tags: | |
- "v*.*.*" | |
- "v*.*.*-*" | |
workflow_dispatch: | |
permissions: | |
packages: read | |
jobs: | |
create-artifacts: | |
name: Create artifacts | |
runs-on: ${{ matrix.os }} | |
strategy: | |
matrix: | |
os: [ ubuntu-latest, windows-latest, macos-14 ] | |
env: | |
DOTNET_NOLOGO: true | |
steps: | |
- name: Checkout repository | |
uses: actions/checkout@v4 | |
with: | |
fetch-depth: 0 | |
- name: Setup .NET SDK | |
uses: actions/setup-dotnet@v4 | |
with: | |
global-json-file: global.json | |
- name: Install .NET tools | |
run: dotnet tool restore | |
- name: Update project files with GitVersion | |
run: dotnet tool run dotnet-gitversion /updateprojectfiles | |
- name: Compile project (Windows) | |
if: ${{ runner.os == 'Windows' }} | |
shell: pwsh | |
run: | | |
dotnet publish ./src/Configurator/ --configuration "Release" --runtime "win-x64"; | |
Remove-Item -Path "./artifacts/publish/Configurator/release_win-x64/*.pdb" -Recurse -Force -Verbose | |
- name: Compile project (Linux) | |
if: ${{ runner.os == 'Linux' }} | |
shell: pwsh | |
run: | | |
dotnet publish ./src/Configurator/ --configuration "Release" --runtime "linux-x64"; | |
Remove-Item -Path "./artifacts/publish/Configurator/release_linux-x64/*.pdb" -Recurse -Force -Verbose; | |
Remove-Item -Path "./artifacts/publish/Configurator/release_linux-x64/*.dbg" -Recurse -Force -Verbose | |
- name: Compile project (macOS) | |
if: ${{ runner.os == 'macOS' }} | |
shell: pwsh | |
run: | | |
dotnet publish ./src/Configurator/ --configuration "Release" --runtime "osx-x64"; | |
dotnet publish ./src/Configurator/ --configuration "Release" --runtime "osx-arm64"; | |
Remove-Item -Path "./artifacts/publish/Configurator/release_osx-x64/*.dsym" -Recurse -Force -Verbose; | |
Remove-Item -Path "./artifacts/publish/Configurator/release_osx-arm64/*.dsym" -Recurse -Force -Verbose | |
- name: Create artifact (Windows) | |
uses: actions/upload-artifact@v4 | |
if: ${{ runner.os == 'Windows' }} | |
with: | |
name: "Configurator_win-x64_${{ github.ref_type == 'tag' && github.ref_name || github.sha }}" | |
path: ${{ github.workspace }}/artifacts/publish/Configurator/release_win-x64/**/* | |
if-no-files-found: error | |
- name: Create artifact (Linux) | |
uses: actions/upload-artifact@v4 | |
if: ${{ runner.os == 'Linux' }} | |
with: | |
name: "Configurator_linux-x64_${{ github.ref_type == 'tag' && github.ref_name || github.sha }}" | |
path: ${{ github.workspace }}/artifacts/publish/Configurator/release_linux-x64/**/* | |
if-no-files-found: error | |
- name: Create artifact (macOS - x64) | |
uses: actions/upload-artifact@v4 | |
if: ${{ runner.os == 'macOS' }} | |
with: | |
name: "Configurator_osx-x64_${{ github.ref_type == 'tag' && github.ref_name || github.sha }}" | |
path: ${{ github.workspace }}/artifacts/publish/Configurator/release_osx-x64/**/* | |
if-no-files-found: error | |
- name: Create artifact (macOS - arm64) | |
uses: actions/upload-artifact@v4 | |
if: ${{ runner.os == 'macOS' }} | |
with: | |
name: "Configurator_osx-arm64_${{ github.ref_type == 'tag' && github.ref_name || github.sha }}" | |
path: ${{ github.workspace }}/artifacts/publish/Configurator/release_osx-arm64/**/* | |
if-no-files-found: error |