Files
Basalt/.github/workflows/ci.yml
2022-06-03 02:17:46 -04:00

54 lines
1.6 KiB
YAML

# This is a basic workflow to help you get started with Actions
name: CI
# Controls when the workflow will run
on:
# Triggers the workflow on push or pull request events but only for the master branch
push:
branches: [ master, feature-compile-ci ]
pull_request:
branches: [ master, feature-compile-ci ]
# Allows you to run this workflow manually from the Actions tab
workflow_dispatch:
# A workflow run is made up of one or more jobs that can run sequentially or in parallel
jobs:
# This workflow contains a single job called "build"
build:
# The type of runner that the job will run on
runs-on: ubuntu-latest
# Steps represent a sequence of tasks that will be executed as part of the job
steps:
# Checks-out your repository under $GITHUB_WORKSPACE, so your job can access it
- uses: actions/checkout@v3
- name: start-message
run: echo Starting compilation
# Runs a set of commands using the runners shell
- name: setup-lua
- uses: leafo/gh-actions-lua@v9
with:
luaVersion: "5.1.0"
- name: setup-luarocks
- uses: leafo/gh-actions-luarocks@v4
with:
luarocksVersion: "3.9.0"
- name: install-lfs
run: luarocks install luafilesystem
- name: compile-basalt
run: lua ${{ github.workspace }}/scripts/compiler.lua
- name: Upload artifact
uses: actions/upload-artifact@v2
with:
name: Basalt-Artifact
path: build/basalt.lua
- name: Cleanup
run: rm -rf ${{ github.workspace}}/build/