workflows #2
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Build | |
concurrency: | |
group: ${{ github.ref }} | |
cancel-in-progress: true | |
on: [push, pull_request, workflow_dispatch] | |
jobs: | |
build: | |
runs-on: ${{ matrix.os }} | |
strategy: | |
matrix: | |
include: | |
- os: windows-latest | |
installer: 'dist/Better-CrewLink Setup*.exe' | |
- os: ubuntu-latest | |
dist: 'dist:linux' | |
installer: 'dist/Better-CrewLink-*.AppImage' | |
steps: | |
- name: Check out Git repository | |
uses: actions/checkout@v1 | |
- name: Install Node.js, NPM and Yarn | |
uses: actions/setup-node@v3 | |
with: | |
node-version: 16.14.2 | |
- name: Cache Node Modules | |
id: node-cache | |
uses: actions/cache@v2 | |
with: | |
path: | | |
node_modules | |
.yarn | |
key: ${{ runner.os }}-3-${{ hashFiles('yarn.lock')}} | |
- name: Install Dependencies | |
if: steps.node-cache.outputs.cache-hit != 'true' | |
run: yarn install --cache-folder .yarn --network-timeout 100000 | |
- name: Build App liunx | |
if: ${{ matrix.os == 'ubuntu-latest'}} | |
run: yarn run ${{ matrix.dist }} --publish never | |
- name: Upload Installer liunx | |
uses: actions/upload-artifact@v2 | |
if: ${{ matrix.os == 'ubuntu-latest'}} | |
with: | |
name: BetterCrewLink Installer ${{ runner.os }} | |
path: ${{ matrix.installer }} | |
if-no-files-found: error | |
- name: Build App x32 | |
if: ${{ matrix.os == 'windows-latest'}} | |
run: yarn run dist:32 --publish never | |
- name: Upload Installer x32 | |
uses: actions/upload-artifact@v2 | |
if: ${{ matrix.os == 'windows-latest'}} | |
with: | |
name: BetterCrewLink Installer ${{ runner.os }} x32 | |
path: ${{ matrix.installer }} | |
if-no-files-found: error | |
- name: Build App x64 | |
if: ${{ matrix.os == 'windows-latest'}} | |
run: yarn run dist:64 --publish never | |
- name: Upload Installer x64 | |
uses: actions/upload-artifact@v2 | |
if: ${{ matrix.os == 'windows-latest'}} | |
with: | |
name: BetterCrewLink Installer ${{ runner.os }} x64 | |
path: ${{ matrix.installer }} | |
if-no-files-found: error | |
- name: Build App x32 + x64 | |
if: ${{ matrix.os == 'windows-latest'}} | |
run: yarn run dist:all --publish never | |
- name: Upload Installer x32 + x64 | |
uses: actions/upload-artifact@v2 | |
if: ${{ matrix.os == 'windows-latest'}} | |
with: | |
name: BetterCrewLink Installer ${{ runner.os }} x32 + x64 | |
path: ${{ matrix.installer }} | |
if-no-files-found: error | |
- name: Upload Unpacked | |
uses: actions/upload-artifact@v2 | |
if: ${{ matrix.os == 'windows-latest'}} | |
with: | |
name: BetterCrewLink Unpacked 64bit | |
path: 'dist/win-unpacked' |