Skip to content

Commit

Permalink
ci: add target macos arm64 (#21)
Browse files Browse the repository at this point in the history
* ci: add target macos arm64

* install postgres
  • Loading branch information
vnghia authored Feb 1, 2024
1 parent 9d9a081 commit bc178bf
Showing 1 changed file with 13 additions and 2 deletions.
15 changes: 13 additions & 2 deletions .github/workflows/main.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -84,13 +84,24 @@ jobs:
DATABASE_URL: ${{ steps.postgres.outputs.connection-uri }}

build-macos:
runs-on: macos-latest
strategy:
fail-fast: false
matrix:
platform:
- target: x86_64-apple-darwin
os: macos-13
- target: aarch64-apple-darwin
os: macos-14

runs-on: ${{ matrix.platform.os }}

steps:
- uses: actions/checkout@v4
- name: Install postgres
run: brew install postgresql@14
- uses: ikalnytskyi/action-setup-postgres@v5
id: postgres
- name: Build and test
run: cargo test --locked --target x86_64-apple-darwin
run: cargo test --locked --target ${{ matrix.platform.target }}
env:
DATABASE_URL: ${{ steps.postgres.outputs.connection-uri }}

0 comments on commit bc178bf

Please sign in to comment.