-
Notifications
You must be signed in to change notification settings - Fork 16
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* style: remove unnecessary environment variable in builds * chore(ci): Fix builds * chore(ci): Fix builds * chore(ci): Fix builds * style: update goreleaser versions and env variables * chore(ci): Fix builds * chore(ci): Fix builds * chore(ci): Fix builds * chore(ci): Fix builds --------- Signed-off-by: Sam Calder-Mason <sam.calder-mason@ethereum.org>
- Loading branch information
Showing
3 changed files
with
121 additions
and
23 deletions.
There are no files selected for viewing
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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,49 @@ | ||
name: test-build | ||
|
||
on: | ||
pull_request: | ||
workflow_dispatch: | ||
|
||
jobs: | ||
goreleaser: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Checkout | ||
uses: actions/checkout@v3 | ||
with: | ||
fetch-depth: 0 | ||
ref: ${{ github.ref }} | ||
- name: Set up Go | ||
uses: actions/setup-go@v4 | ||
with: | ||
go-version: '1.22' | ||
- uses: actions/setup-node@v3 | ||
name: Set up Node | ||
with: | ||
node-version: 18 | ||
- name: Run apt-get update | ||
run: sudo apt-get update | ||
- name: Install cross-compiler for linux/arm64 | ||
run: sudo apt-get -y install gcc-aarch64-linux-gnu | ||
- name: Install make | ||
run: sudo apt-get -y install make | ||
- name: Set up QEMU | ||
uses: docker/setup-qemu-action@v2 | ||
- name: Set up Docker Context for Buildx | ||
shell: bash | ||
id: buildx-context | ||
run: | | ||
docker context create builders | ||
- name: Set up Docker Buildx | ||
uses: docker/setup-buildx-action@v2 | ||
with: | ||
endpoint: builders | ||
- name: Run GoReleaser in Docker | ||
run: | | ||
docker run --rm \ | ||
-v ${{ github.workspace }}:/workspace \ | ||
-w /workspace \ | ||
-e GITHUB_TOKEN=${{ secrets.GITHUB_TOKEN }} \ | ||
-v /var/run/docker.sock:/var/run/docker.sock \ | ||
-e RELEASE_SUFFIX="test" \ | ||
goreleaser/goreleaser-cross:v1.22.2 release --clean --config .goreleaser.yaml --skip=publish --skip=validate |
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