This repository was archived by the owner on Mar 18, 2026. It is now read-only.
Fix dockerbuild #56
Workflow file for this run
This file contains hidden or 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: GO | |
| on: | |
| workflow_dispatch: | |
| push: | |
| branches: [ "main" ] | |
| pull_request: | |
| branches: [ "*" ] | |
| jobs: | |
| build: | |
| name: Build | |
| runs-on: ubuntu-latest | |
| permissions: | |
| contents: read | |
| packages: write | |
| steps: | |
| - name: Set up Go 1.x | |
| uses: actions/setup-go@v2 | |
| with: | |
| go-version: 1.23.x | |
| - name: Check out code into the Go module directory | |
| uses: actions/checkout@v2 | |
| - name: Install Dependencies | |
| run: | | |
| sudo apt update && sudo apt install -y gcc-aarch64-linux-gnu \ | |
| libbtrfs-dev libgpgme-dev libdevmapper-dev \ | |
| qemu-user-static binfmt-support | |
| - name: Run GoReleaser | |
| uses: goreleaser/goreleaser-action@v1 | |
| with: | |
| version: latest | |
| args: build --snapshot --clean --timeout=1h | |
| - name: Copy file | |
| run: | | |
| cp dist/sreg_linux_amd64_v1/sreg sreg | |
| chmod a+x sreg | |
| ./sreg version | |
| - name: Upload linux-amd64 | |
| uses: actions/upload-artifact@v4 | |
| with: | |
| name: sreg-linux-amd64 | |
| path: dist/sreg_linux_amd64_v1/sreg | |
| - name: Upload linux-arm64 | |
| uses: actions/upload-artifact@v4 | |
| with: | |
| name: sreg-linux-arm64 | |
| path: dist/sreg_linux_arm64_v8.0/sreg |