Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Run tests on arm and intel #64

Merged
merged 1 commit into from
Feb 2, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
21 changes: 12 additions & 9 deletions .github/workflows/abq-ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,28 +4,31 @@ on:

jobs:
test_abq:
runs-on: macos-12
runs-on: ${{ matrix.os }}
strategy:
fail-fast: false
matrix:
include:
- name: abq
version: "1.7.4"
os: macos-12 # intel
- name: abq
version: "1.7.4"
os: macos-14 # arm
- name: abq@1
version: "1.7.4"
os: macos-12 # intel
- name: abq@1
version: "1.7.4"
os: macos-14 # arm
steps:
- uses: actions/checkout@v3
with:
path: homebrew-fake-tap-name # give it a fake name so we don't accidentally pull the one from github

- name: move it to the right directory
run: |
mkdir -p homebrew-tap /usr/local/Homebrew/Library/Taps/rwx-research
mv homebrew-fake-tap-name /usr/local/Homebrew/Library/Taps/rwx-research/

- name: Install abq & run it
run: |
set -o pipefail
brew install rwx-research/fake-tap-name/${{ matrix.name }} 2>&1 | tee install-output.txt
! command -v abq
brew install ./Formula/${{ matrix.name }}.rb 2>&1 | tee install-output.txt
Comment on lines -17 to +31
Copy link
Member Author

@kylekthompson kylekthompson Feb 2, 2024

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I tweaked how this works a touch because these commands were failing on macos-14. sudo worked to create the dirs and move the tap, but then brew install failed due to permissions.

This seemed easier than resolving all those shenanigans.

abq --version | grep ${{ matrix.version }}

- name: Ensure the integrity was verified
Expand Down
21 changes: 12 additions & 9 deletions .github/workflows/captain-ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,28 +4,31 @@ on:

jobs:
test_captain:
runs-on: macos-12
runs-on: ${{ matrix.os }}
strategy:
fail-fast: false
matrix:
include:
- name: captain
version: "1.11.7"
os: macos-12 # intel
- name: captain
version: "1.11.7"
os: macos-14 # arm
- name: captain@1
version: "1.11.7"
os: macos-12 # intel
- name: captain@1
version: "1.11.7"
os: macos-14 # arm
steps:
- uses: actions/checkout@v3
with:
path: homebrew-fake-tap-name # give it a fake name so we don't accidentally pull the one from github

- name: move it to the right directory
run: |
mkdir -p homebrew-tap /usr/local/Homebrew/Library/Taps/rwx-research
mv homebrew-fake-tap-name /usr/local/Homebrew/Library/Taps/rwx-research/

- name: Install captain & run it
run: |
set -o pipefail
brew install rwx-research/fake-tap-name/${{ matrix.name }} 2>&1 | tee install-output.txt
! command -v captain
brew install ./Formula/${{ matrix.name }}.rb 2>&1 | tee install-output.txt
captain --version | grep ${{ matrix.version }}

- name: Ensure the integrity was verified
Expand Down
17 changes: 8 additions & 9 deletions .github/workflows/mint-ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,26 +4,25 @@ on:

jobs:
test_mint:
runs-on: macos-12
runs-on: ${{ matrix.os }}
strategy:
fail-fast: false
matrix:
include:
- name: mint
version: "0.0.14"
os: macos-12 # intel
- name: mint
version: "0.0.14"
os: macos-14 # arm
steps:
- uses: actions/checkout@v3
with:
path: homebrew-fake-tap-name # give it a fake name so we don't accidentally pull the one from github

- name: move it to the right directory
run: |
mkdir -p homebrew-tap /usr/local/Homebrew/Library/Taps/rwx-research
mv homebrew-fake-tap-name /usr/local/Homebrew/Library/Taps/rwx-research/

- name: Install mint & run it
run: |
set -o pipefail
brew install rwx-research/fake-tap-name/${{ matrix.name }} 2>&1 | tee install-output.txt
! command -v mint
brew install ./Formula/${{ matrix.name }}.rb 2>&1 | tee install-output.txt
mint --version | grep ${{ matrix.version }}

- name: Ensure the integrity was verified
Expand Down
Loading