Skip to content

Commit

Permalink
Add CI for macOS x86_64 and arm64
Browse files Browse the repository at this point in the history
  • Loading branch information
ivop committed Oct 7, 2024
1 parent 96caef9 commit 54f8f5e
Show file tree
Hide file tree
Showing 2 changed files with 55 additions and 0 deletions.
28 changes: 28 additions & 0 deletions .github/workflows/macOS arm64.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
name: macOS arm64
on: [push]
jobs:
build:
strategy:
matrix:
os: [macos-13-xlarge,macos-latest]
runs-on: ${{ matrix.os }}
steps:
- uses: actions/checkout@v4
- name: Build and test
run: |
brew install fpc md5sha1sum
git clone --depth 1 --branch 2.1.6 https://github.com/tebe6502/Mad-Assembler mads
fpc -Mdelphi -vh -O3 -omads/mads mads/mads.pas
export PATH=$PATH:`pwd`/mads
make -j`sysctl -n hw.ncpu` test
- name: Archive production artifacts
if: ${{ failure() }}
uses: actions/upload-artifact@v4
with:
name: arm64-build-failure
path: xex

# - name: Setup tmate session
# if: ${{ failure() }}
# uses: mxschmitt/action-tmate@v3
27 changes: 27 additions & 0 deletions .github/workflows/macOS x86_64.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
name: macOS x86_64
on: [push]
jobs:
build:
strategy:
matrix:
os: [macos-12,macos-13,macos-14-large]
runs-on: ${{ matrix.os }}
steps:
- uses: actions/checkout@v4
- name: Build and test
run: |
brew install fpc md5sha1sum
git clone --depth 1 --branch 2.1.6 https://github.com/tebe6502/Mad-Assembler mads
fpc -Mdelphi -vh -O3 -omads/mads mads/mads.pas
export PATH=$PATH:`pwd`/mads
make -j`sysctl -n hw.ncpu` test
- name: Archive production artifacts
if: ${{ failure() }}
uses: actions/upload-artifact@v4
with:
name: x86_64-build-failure
path: xex

# - name: Setup tmate session
# uses: mxschmitt/action-tmate@v3

0 comments on commit 54f8f5e

Please sign in to comment.