-
Notifications
You must be signed in to change notification settings - Fork 75
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
e3c9f5f
commit bf9830f
Showing
1 changed file
with
47 additions
and
16 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -14,7 +14,7 @@ on: | |
# - release: | ||
|
||
jobs: | ||
build-linux-and-osx: | ||
build-linux-and-macos-x64: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Checkout | ||
|
@@ -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/ | ||
|
@@ -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 | ||
|
@@ -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 | ||
|
@@ -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 | ||
|
@@ -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 | ||
|
@@ -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 | ||
|
@@ -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 | ||
|
@@ -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 | ||
|
@@ -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 | ||
|
@@ -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 | ||
|
@@ -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 | ||
|