Merge pull request #396 from RagnarokResearchLab/act-mystery-bytes #1006
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 and Release (macOS) | |
on: | |
push: | |
branches: | |
- main | |
paths-ignore: | |
- '**.md' | |
pull_request: | |
types: [opened, synchronize, reopened, ready_for_review] | |
branches: | |
- main | |
paths-ignore: | |
- '**.md' | |
create: | |
# Any branch or tag | |
concurrency: | |
group: ${{ github.workflow }}-${{ github.head_ref || github.run_id }} | |
cancel-in-progress: true | |
jobs: | |
build: | |
if: github.event.pull_request.draft == false | |
name: Build for macOS | |
runs-on: ${{ matrix.os }} | |
strategy: | |
matrix: | |
os: [macos-latest, macos-14] | |
include: | |
- os: macos-latest | |
arch: x64 | |
- os: macos-14 | |
arch: M1 | |
steps: | |
- name: Check out Git repository | |
uses: actions/checkout@v4 | |
- name: Download Lua runtime | |
run: ./download-runtime.sh && ./evo version | |
- name: Run automated tests | |
run: ./test.sh | |
- name: Publish new release | |
if: startsWith(github.ref, 'refs/tags/v') | |
uses: softprops/action-gh-release@v1 | |
env: | |
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} |