Skip to content

fix(ci): just download the luas lol #43

fix(ci): just download the luas lol

fix(ci): just download the luas lol #43

Workflow file for this run

name: test
on: [push, pull_request]
jobs:
test:
strategy:
matrix:
os: [ubuntu-latest, macos-latest, windows-latest]
runs-on: ${{matrix.os}}
steps:
- uses: actions/checkout@v4
- uses: mlugg/setup-zig@v1
with:
version: 0.13.0
- uses: thaitype/actions-switch-case@v1
id: switch-case
with:
default: ''
conditionals-with-values: |
${{ matrix.os == 'ubuntu-latest' }} => lua_x86_64-linux-musl
${{ matrix.os == 'macos-latest' }} => lua_aarch64-macos
${{ matrix.os == 'windows-latest' }} => lua_x86_64-windows-gnu
- uses: robinraju/release-downloader@v1
with:
repository: robbielyman/lua
fileName: ${{ steps.switch-case.outputs.match }}.tar.gz
out-file-path: '.lua'
extract: true
- uses: luarocks/gh-actions-luarocks@v5
- run: luarocks install busted
- run: zig build test
check-fmt:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: mlugg/setup-zig@v1
with:
version: 0.13.0
- run: zig fmt --check .