Skip to content

Commit

Permalink
fix: update to build on node arm64
Browse files Browse the repository at this point in the history
  • Loading branch information
thomasrockhu-codecov committed Nov 13, 2024
1 parent e3c9f5f commit bf9830f
Showing 1 changed file with 47 additions and 16 deletions.
63 changes: 47 additions & 16 deletions .github/workflows/test-and-deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ on:
# - release:

jobs:
build-linux-and-osx:
build-linux-and-macos-x64:
runs-on: ubuntu-latest
steps:
- name: Checkout
Expand All @@ -35,7 +35,38 @@ jobs:
- name: Upload artifacts
uses: actions/[email protected]
with:
name: build-linux-and-osx
name: build-linux-and-macos-x64
if-no-files-found: error
path: |
coverage/
out/
package.json
vendor/
build-macos-arm64:
runs-on: ubuntu-latest
needs: build-linux-and-macos-x64
steps:
- name: Checkout
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4
- uses: actions/setup-node@39370e3970a6d050c480ffad4ff0ed4d3fdee5af # v4
with:
node-version: 18
cache: 'npm'
architecture: arm64
- name: Install deps
run: npm ci
- name: Test
run: make test
- name: Build
run: |
make build
make build_macos_x64
make build_macos_arm64
- name: Upload artifacts
uses: actions/[email protected]
with:
name: build-macos-arm64
if-no-files-found: error
path: |
coverage/
Expand All @@ -46,7 +77,7 @@ jobs:
build-alpine:
runs-on: ubuntu-latest
container: alpine:3.20.3@sha256:beefdbd8a1da6d2915566fde36db9db0b524eb737fc57cd1367effd16dc0d06d
needs: build-linux-and-osx
needs: build-linux-and-macos-x64
steps:
- name: Checkout
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4
Expand Down Expand Up @@ -88,7 +119,7 @@ jobs:
build-windows:
runs-on: windows-latest
needs: build-linux-and-osx
needs: build-linux-and-macos-x64
steps:
- name: Checkout
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4
Expand Down Expand Up @@ -116,7 +147,7 @@ jobs:
test-linux:
runs-on: ubuntu-latest
needs: build-linux-and-osx
needs: build-linux-and-macos-x64
steps:
- name: Checkout
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4
Expand All @@ -125,7 +156,7 @@ jobs:
node-version: 18
- uses: actions/[email protected]
with:
name: build-linux-and-osx
name: build-linux-and-macos-x64
- name: Confirm that linux uploader binary is static
run: (file out/codecov-linux | grep 'static') || exit ${?}
- name: Remove test coverage files
Expand All @@ -152,7 +183,7 @@ jobs:
test-linux-without-git:
runs-on: ubuntu-latest
needs: build-linux-and-osx
needs: build-linux-and-macos-x64
steps:
- name: Checkout
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4
Expand All @@ -161,7 +192,7 @@ jobs:
node-version: 18
- uses: actions/[email protected]
with:
name: build-linux-and-osx
name: build-linux-and-macos-x64
- name: Remove .git directory
run: rm -rf .git
- name: Remove test coverage files
Expand All @@ -184,13 +215,13 @@ jobs:
test-macos-x64:
runs-on: macos-latest-large
needs: build-linux-and-osx
needs: build-linux-and-macos-x64
steps:
- name: Checkout
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4
- uses: actions/[email protected]
with:
name: build-linux-and-osx
name: build-linux-and-macos-x64
- name: Remove test coverage files
run: rm -rf *.coverage.txt coverage-report-test.json test/fixtures || echo
- name: Update exec permission
Expand All @@ -214,13 +245,13 @@ jobs:
test-macos-x64-without-git:
runs-on: macos-latest-large
needs: build-linux-and-osx
needs: build-linux-and-macos-x64
steps:
- name: Checkout
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4
- uses: actions/[email protected]
with:
name: build-linux-and-osx
name: build-linux-and-macos-x64
- name: Remove .git directory
run: rm -rf .git
- name: Remove test coverage files
Expand All @@ -243,13 +274,13 @@ jobs:
test-macos-arm64:
runs-on: macos-latest
needs: build-linux-and-osx
needs: build-macos-arm64
steps:
- name: Checkout
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4
- uses: actions/[email protected]
with:
name: build-linux-and-osx
name: build-macos-arm64
- name: Remove test coverage files
run: rm -rf *.coverage.txt coverage-report-test.json test/fixtures || echo
- name: Update exec permission
Expand All @@ -273,13 +304,13 @@ jobs:
test-macos-arm64-without-git:
runs-on: macos-latest
needs: build-linux-and-osx
needs: build-macos-arm64
steps:
- name: Checkout
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4
- uses: actions/[email protected]
with:
name: build-linux-and-osx
name: build-macos-arm64
- name: Remove .git directory
run: rm -rf .git
- name: Remove test coverage files
Expand Down

0 comments on commit bf9830f

Please sign in to comment.