Skip to content

Commit

Permalink
chore: Add combined mac dylib creation artifact
Browse files Browse the repository at this point in the history
  • Loading branch information
fuzzybinary committed Aug 31, 2024
1 parent d156c84 commit 19d33df
Show file tree
Hide file tree
Showing 2 changed files with 25 additions and 2 deletions.
26 changes: 24 additions & 2 deletions .github/workflows/build.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -42,8 +42,30 @@ jobs:
- name: Assemble artifacts
run: dart ./scripts/build_helpers/bin/assemble_artifacts.dart
- name: 'Upload Artifact'
uses: actions/upload-artifact@v3
uses: actions/upload-artifact@v4
with:
name: lib-${{ matrix.postfix }}
path: ./artifacts


assemble_mac_dylib:
runs-on: macos-latest
needs: build
steps:
- uses: actions/download-artifact@v4
with:
name: lib-macos-x64
path: lib-macos-x64
- uses: actions/download-artifact@v4
with:
name: lib-macos-arm64
path: lib-macos-arm64
- run: |
mkdir -p artifacts/bin
mkdir -p artifacts/include
lipo lib-macos-x64/bin/libdart_dll.dylib lib-macos-arm64/bin/libdart_dll.dylib -output artifacts/bin/libdart_dll.dylib -create
cp -r lib-macos-arm64/include/* artifacts/include
- name: 'Upload Artifact'
uses: actions/upload-artifact@v4
with:
name: lib-macos
path: ./artifacts
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -5,3 +5,4 @@ artifacts/*
depot_tools/*
out/*
.vs
**/.DS_Store

0 comments on commit 19d33df

Please sign in to comment.