Compile blobs #1
This file contains hidden or 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
| on: workflow_dispatch | |
| name: Compile blobs | |
| jobs: | |
| build_linux_x64: | |
| name: Build for Linux x64 | |
| # ubuntu-20.04 ships with GLIBC 2.31, giving maximum compatibility | |
| # with older distros (Debian 11, Ubuntu 20.04+). See issue #73. | |
| runs-on: ubuntu-20.04 | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - uses: dart-lang/setup-dart@v1 | |
| - uses: dtolnay/rust-toolchain@stable | |
| - run: dart pub global activate --source path . | |
| - run: dart pub global run merry build linux-x64 | |
| - uses: actions/upload-artifact@v4 | |
| with: | |
| name: linux_x64 | |
| path: lib/src/blobs/linux_x64.so | |
| build_macos_x64: | |
| name: Build for macOS x64 | |
| runs-on: macos-13 | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - uses: dart-lang/setup-dart@v1 | |
| - uses: dtolnay/rust-toolchain@stable | |
| - run: dart pub global activate --source path . | |
| - run: dart pub global run merry build macos-x64 | |
| - uses: actions/upload-artifact@v4 | |
| with: | |
| name: macos_x64 | |
| path: lib/src/blobs/macos_x64.dylib | |
| build_macos_arm64: | |
| name: Build for macOS ARM64 | |
| runs-on: macos-latest | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - uses: dart-lang/setup-dart@v1 | |
| - uses: dtolnay/rust-toolchain@stable | |
| - run: dart pub global activate --source path . | |
| - run: dart pub global run merry build macos-arm64 | |
| - uses: actions/upload-artifact@v4 | |
| with: | |
| name: macos_arm64 | |
| path: lib/src/blobs/macos_arm64.dylib | |
| build_windows_x64: | |
| name: Build for Windows x64 | |
| runs-on: windows-latest | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - uses: dart-lang/setup-dart@v1 | |
| - uses: dtolnay/rust-toolchain@stable | |
| - run: dart pub global activate --source path . | |
| - run: dart pub global run merry build windows-x64 | |
| - uses: actions/upload-artifact@v4 | |
| with: | |
| name: windows_x64 | |
| path: lib/src/blobs/windows_x64.dll | |
| make_pr: | |
| name: Open blob update PR | |
| runs-on: ubuntu-latest | |
| needs: | |
| - build_linux_x64 | |
| - build_macos_x64 | |
| - build_macos_arm64 | |
| - build_windows_x64 | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - uses: actions/download-artifact@v4 | |
| with: | |
| merge-multiple: true | |
| path: lib/src/blobs | |
| - run: git status | |
| - uses: peter-evans/create-pull-request@v6 | |
| with: | |
| branch: blobs | |
| title: "ci: update precompiled blobs" | |
| commit-message: "ci: update precompiled blobs" |