From 60f55a38a2708ffa9aad9e45c05079bd61eb6632 Mon Sep 17 00:00:00 2001 From: VicDeo Date: Fri, 9 Feb 2024 19:44:11 +0100 Subject: [PATCH] More fixes --- .github/workflows/build.yml | 38 +++++++++++++++++++++++-------------- 1 file changed, 24 insertions(+), 14 deletions(-) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index c26f826..16acbfb 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -1,12 +1,14 @@ -name: "Buid executable" - +name: "Build executable" on: workflow_dispatch: jobs: + call-workflow-passing-data: + uses: VicDeo/go-obfuscate/.github/workflows/test.yml@master + build: env: - GO_ARCH="amd64" + GO_VERSION="1.21.x" strategy: matrix: include: @@ -19,15 +21,23 @@ jobs: - os: macos-latest GOOS: darwin artifact: go-obfuscate.macos.amd64 - - runs-on: ${{ matrix.os }} - - - name: Build for ${{ matrix.os }} - run: GOOS={{ matrix.GOOS }} GOARCH=$GO_ARCH go build -o {{ matrix.artifact }} + runs-on: ${{ matrix.os }} + + steps: + - uses: actions/checkout@v4 + - name: Setup Go + uses: actions/setup-go@v4 + with: + go-version: '1.21.x' + + - name: Install dependencies + run: go get . + - name: Build for ${{ matrix.os }} + run: GOOS="{{ matrix.GOOS }}" GOARCH="amd64" go build -o {{ matrix.artifact }} - - name: Archive artifacts - uses: actions/upload-artifact@v2 - with: - name: go-obfuscate-artifacts - path: | - {{ matrix.artifact }} + - name: Archive artifacts + uses: actions/upload-artifact@v2 + with: + name: go-obfuscate-artifacts + path: | + {{ matrix.artifact }}