Skip to content

Commit

Permalink
fix: test-and-deploy mac builds (#1775)
Browse files Browse the repository at this point in the history
* fix: add in proper mac runs

* fix: @v4

* fix: forgot some

* fix: add names

* fix: update download-artifact

* fix: download-artifact names

* fix: try node 20

* fix: node 18

* fix: flip it because now arm64 is the norm

* fix: build both versions

* fix: update to build on node arm64

* fix: only arm64

* fix: make it macos-latest

* fix: push everything in for review

* fix: small fixes

* fix: more small fixes

* fix: update the binary name
  • Loading branch information
thomasrockhu-codecov authored Nov 13, 2024
1 parent 49eed79 commit b135fbf
Show file tree
Hide file tree
Showing 4 changed files with 195 additions and 81 deletions.
19 changes: 11 additions & 8 deletions .circleci/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -81,13 +81,16 @@ jobs:
node-version: '18.20.3'
- run: npm install
- run: make test
- run: make build_macos
- run: |
make build_macos_arm64
mkdir -p coverage-macos-arm64
cp -r coverage/* coverage-macos-arm64/
- persist_to_workspace:
root: .
paths:
- out/codecov-macos
- coverage-macos
- out/codecov-macos-arm64
- coverage-macos-arm64

build-alpine:
docker:
Expand Down Expand Up @@ -393,15 +396,15 @@ jobs:
- run:
name: Run MacOS binary -f (dry-run)
command: |
./out/codecov-macos -f /Users/distiller/project/coverage/cobertura-coverage.xml -F macos -d -Z -v -e CIRCLE_BRANCH >> output_osx.txt
./out/codecov-macos-arm64 -f /Users/distiller/project/coverage/cobertura-coverage.xml -F macos -d -Z -v -e CIRCLE_BRANCH >> output_osx.txt
- run:
name: Run MacOS binary auto-detect (dry-run)
command: |
./out/codecov-macos -F macos -v -d -Z -e CIRCLE_BRANCH >> output_osx.txt
./out/codecov-macos-arm64 -F macos -v -d -Z -e CIRCLE_BRANCH >> output_osx.txt
- run:
name: Run MacOS binary (upload)
command: |
./out/codecov-macos -F macos -v -Z -e CIRCLE_BRANCH
./out/codecov-macos-arm64 -F macos -v -Z -e CIRCLE_BRANCH
- persist_to_workspace:
root: .
Expand All @@ -425,11 +428,11 @@ jobs:
- run:
name: Run MacOS binary (dry-run)
command: |
./out/codecov-macos -F macos-without-git -d > output_osx_without_git.txt
./out/codecov-macos-arm64 -F macos-without-git -d > output_osx_without_git.txt
- run:
name: Run MacOS binary (upload)
command: |
./out/codecov-macos -F macos-without-git
./out/codecov-macos-arm64 -F macos-without-git
- persist_to_workspace:
root: .
Expand Down
Loading

0 comments on commit b135fbf

Please sign in to comment.