From eca78873ce955eec2d7c7c57682a330c1a9cb37a Mon Sep 17 00:00:00 2001 From: JC Date: Sun, 15 Dec 2024 14:13:53 -0700 Subject: [PATCH 1/2] fix: adding CI ubuntu build --- .github/workflows/electron-ubuntu.yml | 60 +++++++++++++++++++++++++++ 1 file changed, 60 insertions(+) create mode 100644 .github/workflows/electron-ubuntu.yml diff --git a/.github/workflows/electron-ubuntu.yml b/.github/workflows/electron-ubuntu.yml new file mode 100644 index 00000000..ce970cc0 --- /dev/null +++ b/.github/workflows/electron-ubuntu.yml @@ -0,0 +1,60 @@ +name: Electron CD +jobs: + build: + runs-on: ${{ matrix.os }} + + strategy: + matrix: + os: [ubuntu-latest] + + steps: + - name: Context + env: + GITHUB_CONTEXT: ${{ toJson(github) }} + run: echo "$GITHUB_CONTEXT" + - uses: actions/checkout@v1 + with: + fetch-depth: 1 + - uses: actions-rs/toolchain@v1 + with: + toolchain: nightly + override: true + components: rustfmt + - name: Use Node.js + uses: actions/setup-node@v1 + with: + node-version: 20.x + - name: Setup cmake + uses: jwlawson/actions-setup-cmake@v2 + with: + cmake-version: "latest" + - name: Install Protoc + uses: arduino/setup-protoc@v1 + - name: Use cmake + run: cmake --version + - name: Use protoc + run: protoc --version + - name: yarn install + run: | + yarn install + - name: Build and Package@Linux + if: contains(matrix.os, 'ubuntu') + run: | + yarn dist:linux + - name: Name Packages@Linux + if: contains(matrix.os, 'ubuntu') + run: | + mv dist/zingo_pc_${{ env.VERSION }}_amd64.deb dist/Zingo_pc_${{ env.VERSION }}_amd64.deb + - name: Upload artifacts-deb + uses: actions/upload-artifact@v1 + if: contains(matrix.os, 'ubuntu') + with: + name: ${{ matrix.os }} + path: dist/Zingo_pc_${{ env.VERSION }}_amd64.deb + - name: Upload artifacts-AppImage + uses: actions/upload-artifact@v1 + if: contains(matrix.os, 'ubuntu') + with: + name: ${{ matrix.os }} + path: dist/Zingo-pc-${{ env.VERSION }}.AppImage + From f49f7451473f4ecafdf8ffc1c75859a922661383 Mon Sep 17 00:00:00 2001 From: JC Date: Sun, 15 Dec 2024 14:15:56 -0700 Subject: [PATCH 2/2] fix: adding CI ubuntu build fix on --- .github/workflows/electron-ubuntu.yml | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/.github/workflows/electron-ubuntu.yml b/.github/workflows/electron-ubuntu.yml index ce970cc0..b0114635 100644 --- a/.github/workflows/electron-ubuntu.yml +++ b/.github/workflows/electron-ubuntu.yml @@ -1,4 +1,10 @@ -name: Electron CD +name: Electron CD Ubuntu + +on: + push: + branches: + - dev + jobs: build: runs-on: ${{ matrix.os }}