Skip to content
This repository has been archived by the owner on Sep 27, 2024. It is now read-only.

CI

CI #22

Workflow file for this run

name: CI
on:
push:
branches:
- main
pull_request:
branches:
- main
workflow_dispatch:
env:
EXOLIX_AUTHORIZATION: ${{ secrets.EXOLIX_AUTHORIZATION }}
CHANGENOW_API_KEY: ${{ secrets.CHANGENOW_API_KEY }}
STEALTHEX_API_KEY: ${{ secrets.STEALTHEX_API_KEY }}
HOUDINISWAP_API_KEY: ${{ secrets.HOUDINISWAP_API_KEY }}
MAJESTIC_API_KEY: ${{ secrets.MAJESTIC_API_KEY }}
jobs:
build:
strategy:
fail-fast: false
matrix:
os: [ubuntu-latest, windows-latest, macos-latest]
runs-on: ${{ matrix.os }}
steps:
- name: Check out code
uses: actions/checkout@v3
- name: Setup Node.js environment
uses: actions/setup-node@v2
with:
node-version: '20'
- name: Install dependencies
run: npm ci
- name: Extract version
id: pkg
run: echo "::set-output name=version::$(node -p "require('./package.json').version")"
- name: Install electron-builder
run: npm install -g electron-builder
- name: Download firod for macOS
if: matrix.os == 'macos-latest'
run: |
curl -L https://artifacts.firo.org/client-api/latest/firod -o assets/core/darwin/firod
chmod +x assets/core/darwin/firod
- name: Build
shell: bash
env:
USE_HARD_LINKS: "false"
run: |
node electron-vue/build.js
electron-builder build --publish=never
- name: Upload Artifact
if: success()
uses: actions/upload-artifact@v3
with:
name: Firo-Client-${{ steps.pkg.outputs.version }}-${{ matrix.os }}
path: |
./build/Firo-Client-${{ steps.pkg.outputs.version }}.exe
./build/Firo-Client-${{ steps.pkg.outputs.version }}.AppImage
./build/Firo-Client-${{ steps.pkg.outputs.version }}.tar.xz
./build/Firo-Client-${{ steps.pkg.outputs.version }}.dmg