Skip to content

Commit 3699551

Browse files
committed
Update github actions to include libasound2-dev
1 parent 47b6922 commit 3699551

1 file changed

Lines changed: 8 additions & 0 deletions

File tree

.github/workflows/new-release.yml

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,16 +11,24 @@ jobs:
1111
runs-on: ubuntu-latest
1212
steps:
1313
- uses: actions/checkout@v3
14+
15+
- name: Install system dependencies (required for the sounds in the game)
16+
run: |
17+
sudo apt-get update
18+
sudo apt-get install -y pkg-config libasound2-dev
19+
1420
- name: Set up Go
1521
uses: actions/setup-go@v4
1622
with:
1723
go-version: '1.24'
24+
1825
- name: Build binaries
1926
run: |
2027
mkdir -p dist
2128
GOOS=linux GOARCH=amd64 go build -o dist/spaceinvaders-game-linux main.go
2229
GOOS=windows GOARCH=amd64 go build -o dist/spaceinvaders-game-windows.exe main.go
2330
GOOS=darwin GOARCH=amd64 go build -o dist/spaceinvaders-game-mac main.go
31+
2432
- name: Create Release
2533
uses: ncipollo/release-action@v1
2634
with:

0 commit comments

Comments
 (0)