From 5de6fb093116ed0ff8c782bb0052d49b8f626fc6 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?N=C3=A9stor=20Sancho?= Date: Sun, 18 Aug 2024 11:18:43 +0200 Subject: [PATCH] Updated workflow --- .github/workflows/ccpp.yml | 37 -------------------- .github/workflows/make-upload.yml | 58 +++++++++++++++++++++++++++++++ 2 files changed, 58 insertions(+), 37 deletions(-) delete mode 100644 .github/workflows/ccpp.yml create mode 100644 .github/workflows/make-upload.yml diff --git a/.github/workflows/ccpp.yml b/.github/workflows/ccpp.yml deleted file mode 100644 index 09deb03..0000000 --- a/.github/workflows/ccpp.yml +++ /dev/null @@ -1,37 +0,0 @@ -name: C/C++ CI - -on: [push] - -jobs: - build-windows: - name: Windows build - runs-on: windows-latest - steps: - - uses: actions/checkout@v1 - - run: make -f makefile.win compile test - - uses: actions/upload-artifact@v1 - with: - name: windows-binaries - path: bin - - build-linux: - name: Linux build - runs-on: ubuntu-latest - steps: - - uses: actions/checkout@v1 - - run: make -f makefile.linux compile test - - uses: actions/upload-artifact@v1 - with: - name: linux-binaries - path: bin - - build-macos: - name: MacOS build - runs-on: macos-latest - steps: - - uses: actions/checkout@v1 - - run: make -f makefile.macos compile test - - uses: actions/upload-artifact@v1 - with: - name: macos-binaries - path: bin diff --git a/.github/workflows/make-upload.yml b/.github/workflows/make-upload.yml new file mode 100644 index 0000000..4340934 --- /dev/null +++ b/.github/workflows/make-upload.yml @@ -0,0 +1,58 @@ +name: make and upload + +on: + push: + branches: + - master + +jobs: + build-windows: + name: Windows build + runs-on: windows-latest + steps: + + - name: Checkout + uses: actions/checkout@v4 + + - name: make (Windows) + run: make -f makefile.win compile test + + - name: Upload nightly build + uses: actions/upload-artifact@v4 + with: + name: windows-binaries + path: bin + + build-linux: + name: Linux build + runs-on: ubuntu-latest + steps: + + - name: Checkout + uses: actions/checkout@v4 + + - name: make (Linux) + run: make -f makefile.linux compile test + + - name: Upload nightly build + uses: actions/upload-artifact@v4 + with: + name: linux-binaries + path: bin + + build-macos: + name: MacOS build + runs-on: macos-latest + steps: + + - name: Checkout + uses: actions/checkout@v4 + + - name: make (MacOS) + run: make -f makefile.macos compile test + + - name: Upload nightly build + uses: actions/upload-artifact@v4 + with: + name: macos-binaries + path: bin