Skip to content

build-artifacts

build-artifacts #3

Workflow file for this run

name: build-artifacts
on:
workflow_dispatch:
jobs:
job:
name: ${{ matrix.os }}-${{ github.workflow }}
runs-on: ${{ matrix.os }}
strategy:
fail-fast: false
matrix:
os: [ubuntu-latest, windows-latest]
steps:
- uses: actions/checkout@v4
with:
submodules: true
- name: Install dependencies (Linux)
run: sudo apt-get install libx11-dev libxrandr-dev libxcursor-dev libxi-dev libudev-dev libgl1-mesa-dev
if: matrix.os == 'ubuntu-latest'
- uses: lukka/get-cmake@latest
- name: Setup vcpkg
uses: lukka/[email protected]
- name: Run CMake and install necessary packages
uses: lukka/[email protected]
with:
configurePreset: 'x64-Release'
buildPreset: 'x64-Release'
- name: Upload artifact (Linux)
uses: actions/[email protected]
if: matrix.os == 'ubuntu-latest'
with:
name: sayaslicer-linux
path: out/build/x64-Release/sayaslicer/sayaslicer
- name: Upload artifact (Windows)
uses: actions/[email protected]
if: matrix.os == 'windows-latest'
with:
name: sayaslicer-windows
path: |
out/build/x64-Release/sayaslicer/*.dll
out/build/x64-Release/sayaslicer/*.exe