chore: try to user other goproxy. #145
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 | |