diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 40faa4b..a3bc5b1 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -2,39 +2,64 @@ name: "Build" on: workflow_dispatch: + on_push: + branches: + - koputer + - main jobs: - linux: + build-linux: runs-on: ubuntu-latest steps: - uses: actions/checkout@v4 - - name: "Install dependencies" + - name: Install dependencies (apt) run: | sudo apt update sudo apt install -y build-essential cmake autoconf automake libtool pkg-config ninja-build - - name: "Build palera1n" + - name: Build run: | - make palera1n WITH_STATIC=1 WITH_GUI=1 + make palera1n WITH_STATIC=1 BUILD_TYPE=Release - macos: - runs-on: macos-latest + - name: Upload + uses: actions/upload-artifact@v3 + with: + name: palera1n-linux + files: | + build/palera1n + + build-macos: + runs-on: ${{ matrix.os }} + strategy: + matrix: + include: + - os: macos-latest + arch: arm64 + - os: macos-15-intel + arch: x86_64 steps: - uses: actions/checkout@v4 - - name: "Install dependencies" + - name: Install dependencies (brew) run: | brew update brew install cmake autoconf automake libtool pkg-config - - name: "Build palera1n" + - name: Build run: | - make palera1n WITH_STATIC=1 WITH_GUI=1 + make palera1n WITH_STATIC=1 WITH_GUI=1 BUILD_TYPE=Release - windows: + - name: Upload + uses: actions/upload-artifact@v3 + with: + name: palera1n-macos-${{ matrix.arch }} + files: | + build/palera1n.app + + build-windows: runs-on: windows-latest steps: @@ -60,7 +85,15 @@ jobs: zip update: true - - name: "Build palera1n" + - name: Build + shell: msys2 {0} run: | - make palera1n_mingw WITH_STATIC=1 WITH_GUI=1 - \ No newline at end of file + make palera1n_mingw WITH_STATIC=1 WITH_GUI=1 BUILD_TYPE=Release + + - name: Upload + uses: actions/upload-artifact@v3 + with: + name: palera1n-windows-x86_64 + files: | + build/*.exe + build/*.dll \ No newline at end of file