-
Notifications
You must be signed in to change notification settings - Fork 8
38 lines (32 loc) · 857 Bytes
/
build.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
name: Build programs
on:
push:
pull_request:
workflow_dispatch:
jobs:
build:
runs-on: ubuntu-22.04
steps:
- name: Checkout code
uses: actions/checkout@v4
with:
fetch-depth: 0
- name: Set up Go
uses: actions/setup-go@v5
with:
go-version: '1.21'
- name: Install dependencies
run: |
set -e
sudo apt-get update
sudo apt-get install --yes build-essential pkgconf libelf-dev llvm-12 clang-12
for tool in "clang" "llc" "llvm-strip"; do
path=$(which $tool-12)
test $(which $tool) && sudo mv $(which $tool){,.bak}
sudo ln -sf $path ${path%-*}
done
git submodule update --init --recursive
- name: build programs
run: |
set -e
bash ci.sh