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 3252969
Showing 1 changed file with 8 additions and 8 deletions.
16 changes: 8 additions & 8 deletions .github/workflows/go.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ name: Go
on:
push:
tags: [ '*' ]
branches: [ '*' ]

jobs:
compile:
Expand All @@ -18,27 +19,26 @@ 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/
mkdir -p "./dist-${{ matrix.os }}"
go build -o "./dist-${{ matrix.os }}/rally-mka${{ matrix.ext }}" ./cmd/game/
- name: Archive Distribution
uses: actions/upload-artifact@v3
uses: actions/upload-artifact@v4
with:
name: Distribution
path: ./dist
path: ./dist-${{ matrix.os }}

0 comments on commit 3252969

Please sign in to comment.