diff options
author | Ayke van Laethem <[email protected]> | 2022-08-03 22:08:25 +0200 |
---|---|---|
committer | Ron Evans <[email protected]> | 2022-08-05 16:21:34 +0200 |
commit | 5c176f80d57e8854c9c96464a3e486303007d972 (patch) | |
tree | d35e09c7fef7a54a5e31374450440a9f20220ebc /.github | |
parent | c4392d94725f417c1729732095d30932261014d0 (diff) | |
download | tinygo-5c176f80d57e8854c9c96464a3e486303007d972.tar.gz tinygo-5c176f80d57e8854c9c96464a3e486303007d972.zip |
ci: add check that TinyGo can be built using Homebrew LLVM
This is supposed to work, but there was no CI check. Add it to make sure
it continues to work.
Diffstat (limited to '.github')
-rw-r--r-- | .github/workflows/build-macos.yml | 25 |
1 files changed, 25 insertions, 0 deletions
diff --git a/.github/workflows/build-macos.yml b/.github/workflows/build-macos.yml index 40f3ecb3e..87e8f84db 100644 --- a/.github/workflows/build-macos.yml +++ b/.github/workflows/build-macos.yml @@ -100,3 +100,28 @@ jobs: - name: Smoke tests shell: bash run: make smoketest TINYGO=$(PWD)/build/tinygo AVR=0 + test-macos-homebrew: + name: homebrew-install + runs-on: macos-latest + steps: + - name: Install Go + uses: actions/setup-go@v2 + with: + go-version: '1.18' + - name: Install LLVM + shell: bash + run: | + HOMEBREW_NO_AUTO_UPDATE=1 brew install llvm@14 + - name: Checkout + uses: actions/checkout@v2 + - name: Cache Go + uses: actions/cache@v2 + with: + key: go-cache-macos-homebrew-v1-${{ hashFiles('go.mod') }} + path: | + ~/Library/Caches/go-build + ~/go/pkg/mod + - name: Build TinyGo + run: go install + - name: Check binary + run: tinygo version |