Skip to content

Commit

Permalink
no bash
Browse files Browse the repository at this point in the history
Signed-off-by: Aaron Klotz <[email protected]>
  • Loading branch information
dblohm7 committed Jan 23, 2024
1 parent 570530d commit 8d8c064
Showing 1 changed file with 8 additions and 8 deletions.
16 changes: 8 additions & 8 deletions .github/workflows/build-and-test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -37,30 +37,30 @@ jobs:

- name: Set up build directory
run: |
mkdir -p ./bin/${{ matrix.goarch }}
mkdir -p .\bin
- name: Build Binaries
run: |
go build -v -o ./bin/${{ matrix.goarch }} ./...
go build -v -o ./bin ./...
env:
GOARCH: ${{ matrix.goarch }}

- name: Build Test Binaries
run: |
go test -c -o ./bin/${{ matrix.goarch }} ./...
go test -c -o ./bin ./...
env:
GOARCH: ${{ matrix.goarch }}

- name: Bind Resources to All Binaries
shell: bash
run: |
for f in ./bin/${{ matrix.goarch }}/*.exe; do
go-winres patch ${f}
done
foreach ($file in Get-ChildItem .\bin\*.exe)
{
go-winres patch $file
}
- name: Test
if: ${{ matrix.goarch != 'arm64' }}
run: |
go test -o ./bin/${{ matrix.goarch }} -v ./...
go test -o ./bin -v ./...
env:
GOARCH: ${{ matrix.goarch }}

0 comments on commit 8d8c064

Please sign in to comment.