Skip to content

Build

Build #9

Workflow file for this run

name: Build
on:
workflow_dispatch:
inputs:
Linux:
description: 'Build on Linux - Ubuntu'
required: false
type: boolean
Macos:
description: 'Build on Macos'
required: false
type: boolean
Windows:
description: 'Build on Windows'
required: false
type: boolean
env:
CARGO_TERM_COLOR: always
permissions:
contents: write
jobs:
build:
strategy:
matrix:
include:
- os: ubuntu-latest
bin_name: densky-linux-x64
will_run: ${{ inputs.Linux }}
- os: macos-latest
bin_name: densky-macos-x64
will_run: ${{ inputs.Macos }}
- os: windows-latest
bin_name: densky-windows-x64.exe
will_run: ${{ inputs.Windows }}
runs-on: ${{ matrix.os }}
steps:
- uses: actions/checkout@v3
if: ${{ matrix.will_run }}
with:
submodules: true
- name: Build
if: ${{ matrix.will_run }}
run: cargo build --verbose --release
- uses: actions/upload-artifact@v3
if: ${{ matrix.will_run }}
with:
name: ${{ matrix.bin_name }}
path: target/**/densky