From 54f8f5e8772e41a425e2e3b2b1e8c8540d0a3204 Mon Sep 17 00:00:00 2001 From: Ivo van Poorten Date: Mon, 7 Oct 2024 03:12:56 +0200 Subject: [PATCH] Add CI for macOS x86_64 and arm64 --- .github/workflows/macOS arm64.yml | 28 ++++++++++++++++++++++++++++ .github/workflows/macOS x86_64.yml | 27 +++++++++++++++++++++++++++ 2 files changed, 55 insertions(+) create mode 100644 .github/workflows/macOS arm64.yml create mode 100644 .github/workflows/macOS x86_64.yml diff --git a/.github/workflows/macOS arm64.yml b/.github/workflows/macOS arm64.yml new file mode 100644 index 0000000..c6d922a --- /dev/null +++ b/.github/workflows/macOS arm64.yml @@ -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 diff --git a/.github/workflows/macOS x86_64.yml b/.github/workflows/macOS x86_64.yml new file mode 100644 index 0000000..e01d17f --- /dev/null +++ b/.github/workflows/macOS x86_64.yml @@ -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