Skip to content

Commit 5c176f8

Browse files
aykevldeadprogram
authored andcommitted
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.
1 parent c4392d9 commit 5c176f8

File tree

1 file changed

+25
-0
lines changed

1 file changed

+25
-0
lines changed

.github/workflows/build-macos.yml

Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -100,3 +100,28 @@ jobs:
100100
- name: Smoke tests
101101
shell: bash
102102
run: make smoketest TINYGO=$(PWD)/build/tinygo AVR=0
103+
test-macos-homebrew:
104+
name: homebrew-install
105+
runs-on: macos-latest
106+
steps:
107+
- name: Install Go
108+
uses: actions/setup-go@v2
109+
with:
110+
go-version: '1.18'
111+
- name: Install LLVM
112+
shell: bash
113+
run: |
114+
HOMEBREW_NO_AUTO_UPDATE=1 brew install llvm@14
115+
- name: Checkout
116+
uses: actions/checkout@v2
117+
- name: Cache Go
118+
uses: actions/cache@v2
119+
with:
120+
key: go-cache-macos-homebrew-v1-${{ hashFiles('go.mod') }}
121+
path: |
122+
~/Library/Caches/go-build
123+
~/go/pkg/mod
124+
- name: Build TinyGo
125+
run: go install
126+
- name: Check binary
127+
run: tinygo version

0 commit comments

Comments
 (0)