update README. [skip CI] #869
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: macOS | |
on: | |
push: | |
branches: [ main ] | |
tags: 'v*.*.*' | |
pull_request: | |
branches: [ main ] | |
workflow_dispatch: | |
jobs: | |
build: | |
runs-on: macos-13 | |
if: "startsWith(github.ref, 'refs/tags/') || (!contains(github.event.head_commit.message, '[skip CI]') && !contains(github.event.head_commit.message, '[skip macOS]'))" | |
steps: | |
- uses: actions/checkout@v2 | |
- uses: maxim-lobanov/setup-xcode@v1 | |
with: | |
xcode-version: '15.0.1' | |
- name: macOS build | |
if: "!startsWith(github.ref, 'refs/tags/')" | |
run: | | |
Tools/tolua++/build.sh | |
xcodebuild ARCHS=x86_64 ONLY_ACTIVE_ARCH=NO -project Project/macOS/Dora.xcodeproj -target Dora | |
- name: Pack | |
if: startsWith(github.ref, 'refs/tags/') | |
run: | | |
rm -rf Assets/www | |
cd Tools/YarnEditor && unset NODE_OPTIONS && yarn && yarn build-linux && rm -rf ../dora-dora/public/yarn-editor && mv dist ../dora-dora/public/yarn-editor && cd ../.. | |
cd Tools/dora-dora && yarn && yarn build && cd ../.. && mv Tools/dora-dora/build Assets/www | |
cd Assets/www && zip -vr ../../web-ide-files.zip . && cd ../.. | |
cd $GITHUB_WORKSPACE | |
Tools/tolua++/build.sh | |
xcodebuild archive -project Project/macOS/Dora.xcodeproj -scheme Dora -configuration release -archivePath dora.xcarchive | |
cd dora.xcarchive/Products/Applications | |
zip -vr Dora.zip Dora.app | |
mv Dora.zip $GITHUB_WORKSPACE/dora-ssr-${{ github.ref_name }}-macos-universal.zip | |
- name: Release | |
uses: softprops/action-gh-release@v1 | |
if: startsWith(github.ref, 'refs/tags/') | |
with: | |
files: | | |
dora-ssr-${{ github.ref_name }}-macos-universal.zip | |
web-ide-files.zip | |
env: | |
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} |