Skip to content

Commit

Permalink
Move path_ignore and other fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
VicDeo committed Feb 9, 2024
1 parent 918b2b8 commit 1aa1380
Show file tree
Hide file tree
Showing 2 changed files with 24 additions and 18 deletions.
40 changes: 23 additions & 17 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
@@ -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:
Expand All @@ -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 }}
2 changes: 1 addition & 1 deletion .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,9 @@ on:
push:
pull_request:
workflow_dispatch:
workflow_call:
paths-ignore:
- 'README.md'
workflow_call:



Expand Down

0 comments on commit 1aa1380

Please sign in to comment.