Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix pipeline #8

Merged
merged 1 commit into from
Feb 9, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
Loading