From 1aa1380d61599cbee16536336c6ea810a4c36dbf Mon Sep 17 00:00:00 2001 From: VicDeo Date: Fri, 9 Feb 2024 19:04:25 +0100 Subject: [PATCH] Move path_ignore and other fixes --- .github/workflows/build.yml | 40 +++++++++++++++++++++---------------- .github/workflows/test.yml | 2 +- 2 files changed, 24 insertions(+), 18 deletions(-) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 9f5c1d8..16acbfb 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -1,16 +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 - + uses: VicDeo/go-obfuscate/.github/workflows/test.yml@master + build: env: - APP_NAME="go-obfuscate" - GO_ARCH="amd64" + GO_VERSION="1.21.x" strategy: matrix: include: @@ -23,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 }} diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index 61deb2c..485b5ec 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -3,9 +3,9 @@ on: push: pull_request: workflow_dispatch: - workflow_call: paths-ignore: - 'README.md' + workflow_call: