From 89fdcd96af0fb3678220c1b666a634bb138415e9 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Maksymilian=20Wilczy=C5=84ski?= <66273956+maksw2@users.noreply.github.com> Date: Thu, 20 Jun 2024 16:00:32 +0200 Subject: [PATCH] Create build.yml --- .github/workflows/build.yml | 42 +++++++++++++++++++++++++++++++++++++ 1 file changed, 42 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..aabdb72 --- /dev/null +++ b/.github/workflows/build.yml @@ -0,0 +1,42 @@ +name: C/C++ CI + +on: + push: + branches: [ "main" ] + pull_request: + branches: [ "main" ] + +jobs: + build-linux: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v4.1.7 + - name: make + run: make + - uses: actions/upload-artifact@v4.3.3 + with: + name: vega-linux + path: bin + - name: Upload to Release Action + uses: Shopify/upload-to-release@v2.0.0 + with: + name: vega-linux + path: bin + repo-token: ${{ secrets.GITHUB_TOKEN }} + build-windows: + runs-on: windows-latest + steps: + - uses: actions/checkout@4.1.7 + - name: make + run: make + - uses: actions/upload-artifact@v4.3.3 + with: + name: vega-windows + path: bin + - name: Upload to Release Action + uses: Shopify/upload-to-release@v2.0.0 + with: + name: vega-windows + path: bin + repo-token: ${{ secrets.GITHUB_TOKEN }} +