diff --git a/.gitea/workflows/.check.yaml.swp b/.gitea/workflows/.check.yaml.swp new file mode 100644 index 0000000..c39eff5 Binary files /dev/null and b/.gitea/workflows/.check.yaml.swp differ diff --git a/.gitea/workflows/check.yaml b/.gitea/workflows/check.yaml index e92ae4e..5316fb7 100644 --- a/.gitea/workflows/check.yaml +++ b/.gitea/workflows/check.yaml @@ -6,7 +6,7 @@ on: jobs: # Runs on the existing Linux runners. Wakeful links AppKit, IOKit and Carbon, - # so this can parse the Swift but not compile it; see the macos job below. + # so this can parse the Swift but not compile it; see macos.yaml. lint: runs-on: ubuntu-latest container: @@ -27,22 +27,3 @@ jobs: - name: Check run: scripts/check.sh - - # A real build. Off until a macOS act_runner with the "macos" label is - # registered; then set the repo variable MACOS_RUNNER=true to enable it. - macos: - if: vars.MACOS_RUNNER == 'true' - runs-on: macos - steps: - - uses: actions/checkout@v4 - - - name: Check - run: scripts/check.sh - - - name: Build (warnings are errors) - run: swift build -c release -Xswiftc -warnings-as-errors - - - name: Bundle and ad-hoc sign - run: | - make bundle - plutil -lint dist/Wakeful.app/Contents/Info.plist diff --git a/.gitea/workflows/macos.yaml b/.gitea/workflows/macos.yaml new file mode 100644 index 0000000..3f73056 --- /dev/null +++ b/.gitea/workflows/macos.yaml @@ -0,0 +1,24 @@ +name: macos + +# A real build. Manual-only for now: there is no macOS runner, and Gitea leaves +# a job queued (not skipped) when no runner has its label, even behind an `if`. +# Once an act_runner with the "macos" label is registered, add `push:` here. +on: + workflow_dispatch: + +jobs: + build: + runs-on: macos + steps: + - uses: actions/checkout@v4 + + - name: Check + run: scripts/check.sh + + - name: Build (warnings are errors) + run: swift build -c release -Xswiftc -warnings-as-errors + + - name: Bundle and ad-hoc sign + run: | + make bundle + plutil -lint dist/Wakeful.app/Contents/Info.plist