Proper clamp VirtualLayer tile coordinates #290
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
name: Build & Release | |
on: | |
push: | |
branches: | |
- "master" | |
paths-ignore: | |
- '**/README.md' | |
tags: | |
- "v[0-9]+.[0-9]+.[0-9]+.[0-9]+" | |
pull_request: | |
branches: "*" | |
paths-ignore: | |
- '**/README.md' | |
env: | |
DOTNET_NOLOGO: false | |
DOTNET_CLI_TELEMETRY_OPTOUT: 1 | |
DOTNET_SKIP_FIRST_TIME_EXPERIENCE: 1 | |
jobs: | |
build: | |
runs-on: ${{ matrix.runner }} | |
strategy: | |
matrix: | |
runner: [ windows-latest, ubuntu-latest, macos-13 ] #macos-latest is arm64, figure out if we can compile to x64 on arm | |
project: [ {name: Server, extraArgs: ' -p:PublishSingleFile=true --self-contained false'}, {name: CentrED, extraArgs: ''} ] | |
steps: | |
- uses: actions/checkout@v4 | |
with: | |
submodules: recursive | |
fetch-depth: 0 | |
- name: Setup .NET | |
uses: actions/setup-dotnet@v3 | |
with: | |
dotnet-version: 8.0.x | |
- name: Install GitVersion | |
uses: gittools/actions/gitversion/[email protected] | |
with: | |
versionSpec: '6.x' | |
- name: Execute GitVersion | |
id: executeGitVersion | |
uses: gittools/actions/gitversion/[email protected] | |
with: | |
useConfigFile: 'true' | |
updateAssemblyInfo: 'true' | |
updateAssemblyInfoFilename: "${{ matrix.project.name }}/AssemblyInfo.cs" | |
- name: Publish | |
run: dotnet publish ${{ matrix.project.name }} -c Release -o release_${{ matrix.project.name }} -p:DebugType=None ${{ matrix.project.extraArgs }} | |
- name: Upload Build Artifact | |
uses: actions/upload-artifact@v3 | |
with: | |
name: ${{ matrix.project.name }}-${{ runner.os }}-${{ runner.arch }} | |
path: ${{ github.workspace }}/release_${{ matrix.project.name }}/* | |
outputs: | |
semVer: ${{ steps.executeGitVersion.outputs.assemblySemVer }} | |
release: | |
runs-on: ubuntu-latest | |
needs: build | |
steps: | |
- name: Download build artifacts | |
uses: actions/download-artifact@v3 | |
with: | |
path: artifacts/ | |
- name: Install zip | |
uses: montudor/action-zip@v1 | |
- name: Create archives | |
run: | | |
mkdir release | |
for arch in Linux Windows macOS; do | |
zip -qq -r release/Cedserver-$arch-x64.zip artifacts/Server-$arch-X64/ | |
zip -qq -r release/CentrED-$arch-x64.zip artifacts/CentrED-$arch-X64/ | |
done | |
- name: Create Release | |
uses: ncipollo/[email protected] | |
if: github.ref == 'refs/heads/master' | |
with: | |
artifacts: release/* | |
generateReleaseNotes: true | |
makeLatest: true | |
tag: ${{ needs.build.outputs.semVer }} | |