Skip to content

Commit

Permalink
Update main.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
SayakaIsBaka authored Mar 4, 2024
1 parent aaa1c23 commit 8424897
Showing 1 changed file with 23 additions and 3 deletions.
26 changes: 23 additions & 3 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,20 +9,40 @@ jobs:
strategy:
fail-fast: false
matrix:
os: [ubuntu-latest, macos-latest, windows-latest]
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 and install packages
- name: Setup vcpkg
uses: lukka/[email protected]

- name: Run CMake
- 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

0 comments on commit 8424897

Please sign in to comment.