2023-07-23 09:43:38 +00:00
|
|
|
name: Linux
|
|
|
|
|
|
|
|
on:
|
|
|
|
push:
|
|
|
|
branches: [ "main" ]
|
|
|
|
pull_request:
|
|
|
|
branches: [ "main" ]
|
|
|
|
|
|
|
|
permissions:
|
|
|
|
contents: read
|
|
|
|
|
|
|
|
jobs:
|
|
|
|
build:
|
|
|
|
runs-on: ubuntu-latest
|
|
|
|
steps:
|
|
|
|
- uses: actions/checkout@v3
|
|
|
|
- name: Set up Clang
|
|
|
|
uses: egor-tensin/setup-clang@v1
|
|
|
|
with:
|
|
|
|
version: latest
|
2023-07-23 09:54:24 +00:00
|
|
|
platform: x64
|
|
|
|
- name: Setup NASM
|
|
|
|
uses: ilammy/setup-nasm@v1
|
2023-07-23 09:43:38 +00:00
|
|
|
- name: Setup Lua
|
2023-07-23 09:48:35 +00:00
|
|
|
- uses: leafo/gh-actions-lua@v9
|
2023-07-23 09:55:58 +00:00
|
|
|
- name: Setup Luarocks
|
2023-07-23 09:48:35 +00:00
|
|
|
- uses: leafo/gh-actions-luarocks@v4
|
2023-07-23 09:49:55 +00:00
|
|
|
- name: Install argparse
|
2023-07-23 09:48:35 +00:00
|
|
|
shell: bash
|
|
|
|
run: luarocks install argparse
|
2023-07-23 09:49:55 +00:00
|
|
|
- name: Install lua-path
|
|
|
|
shell: bash
|
2023-07-23 09:48:35 +00:00
|
|
|
run: luarocks install lua-path
|
2023-07-23 09:43:38 +00:00
|
|
|
- name: Build
|
|
|
|
working-directory: ${{env.GITHUB_WORKSPACE}}
|
|
|
|
shell: bash
|
|
|
|
run: ./build.lua --clean --release --platform linux -t tests/empty.c
|