Skip to content

Commit 4222350

Browse files
authored
Add workflow to test prs
1 parent c22528b commit 4222350

File tree

1 file changed

+36
-0
lines changed

1 file changed

+36
-0
lines changed

.github/workflows/pr-build.yml

Lines changed: 36 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,36 @@
1+
name: PR Build
2+
3+
on:
4+
pull_request:
5+
6+
jobs:
7+
build:
8+
runs-on: ubuntu-latest
9+
10+
steps:
11+
- uses: actions/checkout@v4
12+
with:
13+
submodules: "recursive"
14+
15+
- name: Download bob
16+
uses: robinraju/release-downloader@v1
17+
with:
18+
repository: "swz-git/bob"
19+
latest: true
20+
fileName: "bob_*_x86_64-unknown-linux-musl.zip"
21+
extract: true
22+
23+
- run: chmod +x bob
24+
25+
- uses: robinraju/release-downloader@v1
26+
with:
27+
latest: true
28+
fileName: "buildinfo.toml"
29+
30+
- name: Extract archives
31+
run: |
32+
mkdir -p bob_build
33+
mv buildinfo.toml bob_build/
34+
35+
- name: Build
36+
run: ./bob build bob.toml

0 commit comments

Comments
 (0)