-
Notifications
You must be signed in to change notification settings - Fork 5
71 lines (70 loc) · 2.03 KB
/
build-main.yaml
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
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
name: Build fireboom latest binary from main branch
on:
push:
branches:
- main
paths_ignore:
- './github/workflows/build-base-builder-docker.yaml'
- './github/workflows/build-base-runner-docker.yaml'
- './github/workflows/build-release-docker.yaml'
- './github/workflows/build-release.yaml'
- './github/workflows/build-main-docker.yaml'
- 'Dockerfile'
- 'README.md'
jobs:
build:
runs-on: ubuntu-latest
env:
FB_VERSION: test
steps:
- uses: actions/checkout@v4
with:
submodules: recursive
- name: Set up Go
uses: actions/setup-go@v5
with:
go-version: 1.21.8
- name: Build
run: |
go mod tidy
sh scripts/build-all.sh
sh scripts/tar-all.sh
sh scripts/clear-bin.sh
- name: R2 Upload Action
uses: ryand56/r2-upload-action@latest
with:
r2-account-id: ${{ secrets.R2_ACCOUNT_ID }}
r2-access-key-id: ${{ secrets.R2_ACCESS_KEY_ID }}
r2-secret-access-key: ${{ secrets.R2_SECRET_ACCESS_KEY }}
r2-bucket: fb-bin
source-dir: release
destination-dir: ./main
build-without-web:
runs-on: ubuntu-latest
env:
FB_VERSION: test
BIN_SUFFIX: _without-web
steps:
- uses: actions/checkout@v4
with:
submodules: recursive
- name: Set up Go
uses: actions/setup-go@v5
with:
go-version: 1.21.8
- name: Build
run: |
go mod tidy
sh scripts/skip-front.sh
sh scripts/build-all.sh
sh scripts/tar-all.sh
sh scripts/clear-bin.sh
- name: R2 Upload Action
uses: ryand56/r2-upload-action@latest
with:
r2-account-id: ${{ secrets.R2_ACCOUNT_ID }}
r2-access-key-id: ${{ secrets.R2_ACCESS_KEY_ID }}
r2-secret-access-key: ${{ secrets.R2_SECRET_ACCESS_KEY }}
r2-bucket: fb-bin
source-dir: release
destination-dir: ./main