Skip to content

Commit

Permalink
Fix all builds
Browse files Browse the repository at this point in the history
  • Loading branch information
jerbob92 committed Apr 13, 2023
1 parent 0a76e3d commit f3dc441
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 3 deletions.
3 changes: 2 additions & 1 deletion .github/workflows/go.yml
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,8 @@ jobs:
- name: Build Windows
if: matrix.os == 'windows-latest'
run: |
CGO_ENABLED=0 go build -o artifacts/xpdf-wasm-windows-x64 main.go
$env:CGO_ENABLED = '0'
go build -o artifacts/xpdf-wasm-windows-x64 main.go
- uses: actions/upload-artifact@v3
with:
name: builds
Expand Down
10 changes: 8 additions & 2 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,12 @@ jobs:
uses: actions/setup-go@v2
with:
go-version: ${{ matrix.go }}
- name: Test build
- name: Test build (non-Windows)
if: matrix.os != 'windows-latest'
run: |
CGO_ENABLED=0 go build main.go
CGO_ENABLED=0 go build main.go
- name: Test build (Windows)
if: matrix.os == 'windows-latest'
run: |
$env:CGO_ENABLED = '0'
go build main.go

0 comments on commit f3dc441

Please sign in to comment.