Skip to content

Commit

Permalink
Fix workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
mokiat committed Sep 8, 2024
1 parent 6ec0e2f commit f6f5240
Showing 1 changed file with 6 additions and 5 deletions.
11 changes: 6 additions & 5 deletions .github/workflows/go.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,8 @@ name: Go
on:
push:
tags: [ '*' ]
push:
branches: [ '*' ]

jobs:
compile:
Expand All @@ -18,24 +20,23 @@ jobs:
runs-on: ${{ matrix.os }}
steps:
- name: Checkout
uses: actions/checkout@v2
uses: actions/checkout@v4
with:
lfs: 'true'

- name: Setup Go
uses: actions/setup-go@v4.1.0
uses: actions/setup-go@v5
with:
go-version: "1.21"
go-version: "1.22"

- name: Install Linux Packages
if: matrix.os == 'ubuntu-latest'
run: sudo apt-get install -y libgl1-mesa-dev xorg-dev

- name: Compile
run: |
cat resources/resources.go
mkdir -p "./dist/${{ matrix.os }}"
go build -o "./dist/${{ matrix.os }}/rally-mka${{ matrix.ext }}" ./cmd/rallymka/
go build -o "./dist/${{ matrix.os }}/rally-mka${{ matrix.ext }}" ./cmd/game/
- name: Archive Distribution
uses: actions/upload-artifact@v3
Expand Down

0 comments on commit f6f5240

Please sign in to comment.