Skip to content

Make render updates atomic #533

Make render updates atomic

Make render updates atomic #533

Workflow file for this run

name: macOS CI
on:
push:
workflow_dispatch:
pull_request:
release:
types: [published]
jobs:
build:
strategy:
matrix:
os: [macos-13]
arch: [x64, arm64]
fail-fast: false
runs-on: ${{ matrix.os }}
steps:
- uses: maxim-lobanov/setup-xcode@v1
with:
xcode-version: latest-stable
- name: "Install Dependencies"
run: |
npm install -g appdmg
- name: "Install .NET"
uses: actions/setup-dotnet@v4
with:
dotnet-version: '8.0.x'
- uses: actions/checkout@v1
with:
submodules: 'recursive'
- name: "Build Project"
run: ./build-macos.sh
env:
BUILD_ARCH: ${{ matrix.arch }}
working-directory: dist
- name: "Create Disk Image"
run: appdmg dist/app-dmg-spec.json ./bnbnav-mac-${{ matrix.arch }}.dmg
- uses: actions/upload-artifact@v4
name: "Upload Artifact"
with:
name: "bnbnav-mac-${{ matrix.arch }}.dmg"
path: "./bnbnav-mac-${{ matrix.arch }}.dmg"
release:
strategy:
matrix:
arch: [ x64, arm64 ]
fail-fast: false
runs-on: ubuntu-latest
needs: build
if: github.event_name == 'release'
steps:
- uses: actions/download-artifact@v3
name: "Download Artifact"
id: download
with:
name: "bnbnav-mac-${{ matrix.arch }}.dmg"
- name: "Upload to Release"
uses: softprops/action-gh-release@v1
with:
files: bnbnav-mac-*.dmg