From 8713829c9817e12e01465a0330b6cd3176059e04 Mon Sep 17 00:00:00 2001 From: flysand7 Date: Sat, 5 Oct 2024 09:15:54 +1100 Subject: [PATCH] Add CI/CD --- .github/workflows/build.yml | 35 +++++++++++++++++++++++++++++++++++ 1 file changed, 35 insertions(+) create mode 100644 .github/workflows/build.yml diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml new file mode 100644 index 0000000..3cd9b03 --- /dev/null +++ b/.github/workflows/build.yml @@ -0,0 +1,35 @@ +name: Build +run-name: Build +on: + - push +jobs: + build-linux: + name: Build (ubuntu) + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v2 + - uses: laytan/setup-odin@v2 + with: + token: ${{ secrets.GITHUB_TOKEN }} + release: latest + build-type: release + - uses: leafo/gh-actions-lua@v10 + with: + luaVersion: "5.4.1" + - name: Build CLI + run: lua build.lua + build-windows: + name: Build (windows) + runs-on: windows-latest + steps: + - uses: actions/checkout@v2 + - uses: laytan/setup-odin@v2 + with: + token: ${{ secrets.GITHUB_TOKEN }} + release: latest + build-type: release + - uses: leafo/gh-actions-lua@v10 + with: + luaVersion: "5.4.1" + - name: Build CLI + run: lua build.lua \ No newline at end of file