From 2cf9241b1b00c400f53141a7a4b96386d17e7f94 Mon Sep 17 00:00:00 2001 From: Mathew <23657891+iammathew@users.noreply.github.com> Date: Tue, 24 May 2022 21:35:51 +0200 Subject: [PATCH] Add CI/CD using GHA --- .github/workflows/main.yml | 42 ++++++++++++++++++++++++++++++++++++++ 1 file changed, 42 insertions(+) create mode 100644 .github/workflows/main.yml diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml new file mode 100644 index 0000000..b0e2d64 --- /dev/null +++ b/.github/workflows/main.yml @@ -0,0 +1,42 @@ +name: CI + +on: + push: + branches: [ main ] + pull_request: + branches: [ main ] + + workflow_dispatch: + +jobs: + build-linux: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v3 + - name: Build binary + run: bash build.osx.sh + - uses: actions/upload-artifact@v3 + with: + name: SAJSON-linux + path: SAJSON + build-windows: + runs-on: windows-latest + steps: + - uses: actions/checkout@v3 + - name: Build binary + shell: cmd + run: .\build.win.bat + - uses: actions/upload-artifact@v3 + with: + name: SAJSON-windows.exe + path: SAJSON.exe + build-macos: + runs-on: macos-latest + steps: + - uses: actions/checkout@v3 + - name: Build binary + run: bash build.osx.sh + - uses: actions/upload-artifact@v3 + with: + name: SAJSON-macos + path: SAJSON \ No newline at end of file