Skip to content

Fix workflow

Fix workflow #14

Workflow file for this run

name: Go
on:
push:
tags: [ '*' ]
branches: [ '*' ]
jobs:
compile:
name: Compile
strategy:
matrix:
os: [windows-latest, ubuntu-latest]
include:
- os: windows-latest
ext: '.exe'
- os: ubuntu-latest
ext: ''
runs-on: ${{ matrix.os }}
steps:
- name: Checkout
uses: actions/checkout@v4
with:
lfs: 'true'
- name: Setup Go
uses: actions/setup-go@v5
with:
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: |
mkdir -p "./dist-${{ matrix.os }}"
go build -o "./dist-${{ matrix.os }}/rally-mka${{ matrix.ext }}" ./cmd/game/
- name: Archive Distribution
uses: actions/upload-artifact@v4
with:
name: Distribution
path: ./dist-${{ matrix.os }}