test #29
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: CD | |
on: | |
push: | |
branches: [ main ] | |
release: | |
types: [ created ] | |
workflow_dispatch: | |
jobs: | |
cd: | |
name: ${{ matrix.name }} | |
runs-on: ${{ matrix.os }} | |
strategy: | |
fail-fast: false | |
matrix: | |
include: | |
- name: Windows | |
os: windows-latest | |
script: win | |
- name: Linux | |
os: ubuntu-latest | |
script: linux | |
- name: macOS | |
os: macos-latest | |
script: mac | |
steps: | |
- name: Check out OpenCOR | |
uses: actions/checkout@v4 | |
- name: Setup Node.js | |
uses: actions/setup-node@v4 | |
with: | |
node-version: 'lts/*' | |
- name: Setup Yarn | |
run: npm install -g yarn | |
- name: Install Snapcraft (Linux only) | |
if: ${{ runner.os == 'Linux' }} | |
run: sudo snap install snapcraft --classic | |
- name: Build OpenCOR | |
run: | | |
yarn | |
yarn build:${{ matrix.script }} | |
- name: Make AppImage executable (Linux only) | |
if: ${{ runner.os == 'Linux' }} | |
run: chmod +x ./dist/OpenCOR-*.AppImage | |
- name: Remove blockmap files | |
shell: bash | |
run: find ./dist -name '*.blockmap' -delete | |
- name: Upload artifacts | |
uses: actions/upload-artifact@v4 | |
with: | |
name: ${{ matrix.name }} | |
path: ./dist/OpenCOR-*.* |