From 17c7aedff3f798a0c5b2d94c594e4fa816629821 Mon Sep 17 00:00:00 2001 From: Samuel Pizette Date: Fri, 3 Jun 2022 02:11:29 -0400 Subject: [PATCH] Create ci.yml --- .github/workflows/ci.yml | 50 ++++++++++++++++++++++++++++++++++++++++ 1 file changed, 50 insertions(+) create mode 100644 .github/workflows/ci.yml diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml new file mode 100644 index 0000000..f30577a --- /dev/null +++ b/.github/workflows/ci.yml @@ -0,0 +1,50 @@ +# 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: ljmf00/setup-lua@v1.0.0 + with: + lua-version: 5.1.0 + install-luarocks: true + luarocks-version: 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/