Skip to content

Commit

Permalink
refactor: add arm64 darwin/macos nightly jobs
Browse files Browse the repository at this point in the history
  • Loading branch information
Yohe-Am committed Jun 25, 2024
1 parent cd4f151 commit 8cccdef
Showing 1 changed file with 13 additions and 14 deletions.
27 changes: 13 additions & 14 deletions .github/workflows/nightly.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,14 +13,19 @@ jobs:
test-e2e:
runs-on: "${{ matrix.os }}"
strategy:
fail-fast: false
matrix:
include:
- os: ubuntu-latest
platform: linux/x86_64
e2eType: "docker"
- os: custom-arm
platform: linux/aarch64
e2eType: "docker"
- os: macos-latest
platform: darwin/x86_64
e2eType: "local"
- os: macos-14
platform: darwin/aarch64
e2eType: "local"
# - os: windows-latest
# e2eType: "local"
Expand All @@ -31,25 +36,19 @@ jobs:
- uses: denoland/setup-deno@v1
with:
deno-version: ${{ env.DENO_VERSION }}

- if: "${{ matrix.os == 'macos-latest' || matrix.os == 'macos-14' }}"
# we need coreutils on max for the `timeout` command
run: brew install fish zsh coreutils
- name: Cache deno dir
if: "${{ matrix.os == 'macos-latest' || matrix.os == 'macos-14' }}"
uses: actions/cache@v4
with:
path: ${{ env.DENO_DIR }}
key: deno-mac-${{ hashFiles('**/deno.lock') }}

key: deno-${{ hashFiles('**/deno.lock') }}
- if: "${{ matrix.e2eType == 'docker' }}"
uses: docker/setup-buildx-action@v3
- if: "${{ matrix.e2eType == 'docker' }}"
uses: actions-hub/docker/cli@master
env:
SKIP_LOGIN: true

- run: deno task test
- if: "${{ matrix.os == 'macos-latest' || matrix.os == 'macos-14' }}"
# we need coreutils on max for the `timeout` command
run: brew install fish zsh coreutils
- env:
DOCKER_PLATFORM: ${{ matrix.platform }}
run: deno task test

test-action:
runs-on: ubuntu-latest
Expand Down

0 comments on commit 8cccdef

Please sign in to comment.