From 2c9af20759b780ad2743af9ca312a9ec9188cf7f Mon Sep 17 00:00:00 2001 From: olegfomenko2002 Date: Thu, 23 Nov 2023 21:10:39 +0200 Subject: [PATCH] fixing ci: added path arg and cgo support --- .github/workflows/packages-rc.yml | 5 +++++ .github/workflows/packages.yml | 5 +++++ .goreleaser.yml | 8 ++++++++ 3 files changed, 18 insertions(+) create mode 100644 .goreleaser.yml diff --git a/.github/workflows/packages-rc.yml b/.github/workflows/packages-rc.yml index 990248fc..c5948364 100644 --- a/.github/workflows/packages-rc.yml +++ b/.github/workflows/packages-rc.yml @@ -26,11 +26,16 @@ jobs: - name: Set up Go uses: actions/setup-go@v4 + - name: GCC multilib + run: | + sudo apt-get install gcc-multilib g++-multilib + - name: Run GoReleaser uses: goreleaser/goreleaser-action@v5 with: distribution: goreleaser version: latest args: release --clean + workdir: ./cmd/rarimo-cored env: GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} \ No newline at end of file diff --git a/.github/workflows/packages.yml b/.github/workflows/packages.yml index bbb3dd25..089a10b7 100644 --- a/.github/workflows/packages.yml +++ b/.github/workflows/packages.yml @@ -26,11 +26,16 @@ jobs: - name: Set up Go uses: actions/setup-go@v4 + - name: GCC multilib + run: | + sudo apt-get install gcc-multilib g++-multilib + - name: Run GoReleaser uses: goreleaser/goreleaser-action@v5 with: distribution: goreleaser version: latest args: release --clean + workdir: ./cmd/rarimo-cored env: GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} \ No newline at end of file diff --git a/.goreleaser.yml b/.goreleaser.yml new file mode 100644 index 00000000..ff7c69b6 --- /dev/null +++ b/.goreleaser.yml @@ -0,0 +1,8 @@ +builds: + - id: linux-amd64-build + env: + - CGO_ENABLED=0 + goos: + - linux + goarch: + - amd64 \ No newline at end of file