Skip to content

Commit

Permalink
Fix macOS CI (#31)
Browse files Browse the repository at this point in the history
* ci: don't copy macOS metadata files

* ci: build widgets separately

* ci: typo

* ci: install more ram
  • Loading branch information
Vtec234 authored Oct 24, 2023
1 parent 8e808df commit f1a5c78
Showing 1 changed file with 10 additions and 2 deletions.
12 changes: 10 additions & 2 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -42,9 +42,15 @@ jobs:
- uses: actions/checkout@v4

# TODO: investigate why `lake build` deadlocks on macOS
- name: Build widgets
run: npm clean-install && npm run build
working-directory: ./widget
env:
NODE_OPTIONS: "--max-old-space-size=4096"

- name: Build package
if: steps.cache-build.outputs.cache-hit != 'true'
run: lake build
run: lake build ProofWidgets

- name: Create release for tag
if: github.ref_type == 'tag'
Expand All @@ -53,10 +59,12 @@ jobs:
# TODO: replace with just `lake upload $RELEASE_TAG` when lean4#2713 is fixed
# References:
# https://docs.github.com/en/actions/learn-github-actions/contexts#runner-context
# https://stackoverflow.com/questions/8766730/tar-command-in-mac-os-x-adding-hidden-files-why
- name: Upload release archive
if: github.ref_type == 'tag'
# All our runners are 64-bit ¯\_(ツ)_/¯
run: |
export COPYFILE_DISABLE=true
tar -c -z -f ./${LEAN_OS}-64.tar.gz -C ./build .
gh release upload ${RELEASE_TAG} ./${LEAN_OS}-64.tar.gz
env:
Expand Down

0 comments on commit f1a5c78

Please sign in to comment.