fix: don't antialias masks, and actually test it #23
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 | |
on: | |
push: | |
branches: | |
- main | |
pull_request: | |
branches: | |
- main | |
jobs: | |
build: | |
strategy: | |
matrix: | |
runtimeIdentifier: ["win7-x64", "linux-x64", "osx-arm64", "osx-x64"] | |
runs-on: ubuntu-latest | |
env: | |
ProjectName: BAKKA_Editor.Desktop | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v3 | |
with: | |
fetch-depth: 0 | |
- name: Install .NET | |
uses: actions/setup-dotnet@v3 | |
with: | |
dotnet-version: 7.0.x | |
- name: Publish the application | |
run: dotnet publish ${{ env.ProjectName }} --sc -r ${{ env.RuntimeIdentifier }} -c Release | |
env: | |
RuntimeIdentifier: ${{ matrix.runtimeIdentifier }} | |
- name: Copy bass libraries (Linux) | |
run: cp ${{ env.ProjectName }}/lib/${{ env.RuntimeIdentifier }}/* ${{ env.ProjectName }}/bin/Release/net7.0/${{ env.RuntimeIdentifier }}/publish | |
if: ${{ contains(env.RuntimeIdentifier, 'linux') }} | |
env: | |
RuntimeIdentifier: ${{ matrix.runtimeIdentifier }} | |
- name: Copy bass libraries (Windows) | |
run: cp ${{ env.ProjectName }}/lib/win-x64/* ${{ env.ProjectName }}/bin/Release/net7.0/${{ env.RuntimeIdentifier }}/publish | |
if: ${{ !contains(env.RuntimeIdentifier, 'win') }} | |
env: | |
RuntimeIdentifier: ${{ matrix.runtimeIdentifier }} | |
- name: Copy bass libraries (macOS) | |
run: cp ${{ env.ProjectName }}/lib/darwin/* ${{ env.ProjectName }}/bin/Release/net7.0/${{ env.RuntimeIdentifier }}/publish | |
if: ${{ contains(env.RuntimeIdentifier, 'osx') }} | |
env: | |
RuntimeIdentifier: ${{ matrix.runtimeIdentifier }} | |
- name: Mark binary as executable | |
run: chmod +x ${{ env.ProjectName }}/bin/Release/net7.0/${{ env.RuntimeIdentifier }}/publish/${{ env.ProjectName }} | |
if: ${{ !contains(env.RuntimeIdentifier, 'win') }} | |
env: | |
RuntimeIdentifier: ${{ matrix.runtimeIdentifier }} | |
- name: Create zip archive | |
run: zip -r ${{ env.RuntimeIdentifier }}.zip ${{ env.ProjectName }}/bin/Release/net7.0/${{ env.RuntimeIdentifier }}/publish | |
env: | |
RuntimeIdentifier: ${{ matrix.runtimeIdentifier }} | |
- name: Upload build artifacts | |
uses: actions/upload-artifact@v3 | |
with: | |
name: ${{ env.RuntimeIdentifier }} | |
path: ${{ env.RuntimeIdentifier }}.zip | |
env: | |
RuntimeIdentifier: ${{ matrix.runtimeIdentifier }} |