Skip to content

Merge pull request #224 from juanky201271/dev_CI_electron_ubuntu #1

Merge pull request #224 from juanky201271/dev_CI_electron_ubuntu

Merge pull request #224 from juanky201271/dev_CI_electron_ubuntu #1

name: Electron CD Ubuntu
on:
push:
branches:
- dev
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