Skip to content

Commit

Permalink
TMP
Browse files Browse the repository at this point in the history
  • Loading branch information
Morriar committed Aug 30, 2024
1 parent 8f735a7 commit be918f0
Showing 1 changed file with 40 additions and 0 deletions.
40 changes: 40 additions & 0 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,40 @@
name: Build Sorbet ARM64

on:
push:
workflow_dispatch: # Allows manual triggering

jobs:
build:
runs-on: macos-latest-xlarge
steps:

- name: Checkout code
uses: actions/checkout@v4

- name: Install packages
run: brew install autoconf coreutils parallel

- name: Build x86_64
run: |
TARGET_PLATFORM=darwin-x86_64 ./bazel build //main:sorbet --strip=always --config=release-mac
mv bazel-bin/main/sorbet sorbet_x86_64
- name: Build arm64
run: |
./bazel clean --expunge
TARGET_PLATFORM=darwin-arm64 ./bazel build //main:sorbet --strip=always --config=release-mac-arm64
mv bazel-bin/main/sorbet sorbet_arm64
- name: Merge binaries
run: |
lipo -create -output sorbet sorbet_x86_64 sorbet_arm64
rm sorbet_x86_64 sorbet_arm64
- name: Run
run: |
file ./sorbet
./sorbet -e "42 + 'hello'"
# TODO: package the gem
# TODO: upload to internal package manager

0 comments on commit be918f0

Please sign in to comment.