Skip to content

Commit

Permalink
build on PR/push
Browse files Browse the repository at this point in the history
  • Loading branch information
ClementTsang committed Apr 22, 2024
1 parent 1f018b7 commit 2520d1b
Showing 1 changed file with 12 additions and 17 deletions.
29 changes: 12 additions & 17 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,26 +3,21 @@ name: Build barista
on:
workflow_dispatch:
workflow_call:

pull_request:
push:
branches:
- main

jobs:
build:
name: Build
runs-on: macOS
runs-on: macos-14
steps:
- name: Checkout repository
if: matrix.info.container == ''
uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # v4.1.1
with:
fetch-depth: 1

- name: Build
run: xcodebuild -scheme barista -configuration Pre -derivedDataPath "$RUNNER_TEMP/DerivedData" -archivePath "$RUNNER_TEMP/CodeEdit.xcarchive" -skipPackagePluginValidation archive

- name: Create DMG
run: |
create-dmg \
--volname "barista" \
"$RUNNER_TEMP/CodeEdit.dmg" \
"$RUNNER_TEMP/CodeEdit.xcarchive/Products/Applications/"
- name: Checkout repository
if: matrix.info.container == ''
uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # v4.1.1
with:
fetch-depth: 1

- name: Build
run: xcodebuild -scheme barista -configuration Pre -derivedDataPath "$RUNNER_TEMP/DerivedData" -archivePath "$RUNNER_TEMP/CodeEdit.xcarchive" -skipPackagePluginValidation archive

0 comments on commit 2520d1b

Please sign in to comment.