From 72b5b7a16a82eec71a2c11b41910c07290b12b64 Mon Sep 17 00:00:00 2001 From: daniel Date: Mon, 16 Dec 2024 22:48:03 +0300 Subject: [PATCH] Run workflow on push --- .github/workflows/build.yml | 26 ++++---------------------- 1 file changed, 4 insertions(+), 22 deletions(-) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index e1f7e53..bef0cf6 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -2,16 +2,14 @@ name: Build Foxogram Desktop on: push: - branches: [ "main" ] - -permissions: - contents: write + branches: + - workflow jobs: build: strategy: matrix: - os: [ ubuntu-latest, macos-latest, windows-latest ] + os: [ macos-latest ] runs-on: ${{ matrix.os }} steps: - uses: actions/checkout@v4 @@ -24,7 +22,7 @@ jobs: - name: Build Foxogram run: | mkdir cmake-build - cmake -DCMAKE_BUILD_TYPE=Release -DIXWEBSOCKET_INSTALL:BOOL=OFF -DCMAKE_INSTALL_PREFIX=foxogram -B cmake-build + cmake -DCMAKE_BUILD_TYPE=Release -DIXWEBSOCKET_INSTALL:BOOL=OFF -DCMAKE_INSTALL_PREFIX=foxogram -DCMAKE_MAKE_PROGRAM=ninja -B cmake-build cmake --build cmake-build --target install - name: Archive Foxogram @@ -41,19 +39,3 @@ jobs: with: name: ${{ matrix.os }}.zip path: ${{ matrix.os }}.zip - - upload: - needs: build - runs-on: ubuntu-latest - steps: - - name: Download artifact - uses: actions/download-artifact@v4 - - - name: List files - run: ls -la - - - name: Create release - uses: softprops/action-gh-release@v2 - with: - tag_name: ${{ github.run_id }} - files: "*-latest.zip"