Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
122 changes: 0 additions & 122 deletions .github/workflows/build.yml

This file was deleted.

74 changes: 74 additions & 0 deletions .github/workflows/linux.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,74 @@
name: linux

on:
push:
pull_request:

permissions:
contents: read

env:
LUNA_VCPKG_ROOT: ${{ github.workspace }}/vcpkg
VCPKG_DEFAULT_BINARY_CACHE: ${{ github.workspace }}/.cache/vcpkg/archives
VCPKG_BINARY_SOURCES: clear;files,${{ github.workspace }}/.cache/vcpkg/archives,readwrite

jobs:
build-linux:
runs-on: ubuntu-latest

steps:
- name: Check out repository
uses: actions/checkout@v4
with:
fetch-depth: 0
submodules: recursive

- name: Install toolchain
run: |
sudo apt-get update
sudo apt-get install -y \
autoconf \
autoconf-archive \
automake \
clang \
libtool \
lld \
ninja-build \
pkg-config \
libunwind-dev
sudo apt-get install -y \
libasound2-dev libpulse-dev libaudio-dev libjack-dev \
libx11-dev libxext-dev libxrandr-dev libxcursor-dev libxfixes-dev libxi-dev libxss-dev libxtst-dev \
libwayland-dev libxkbcommon-dev libegl1-mesa-dev

- name: Set up vcpkg
run: git clone https://github.com/microsoft/vcpkg.git "${LUNA_VCPKG_ROOT}"

- name: Create vcpkg cache directories
run: mkdir -p "${VCPKG_DEFAULT_BINARY_CACHE}" "${LUNA_VCPKG_ROOT}/downloads"

- name: Bootstrap vcpkg
run: VCPKG_ROOT="${LUNA_VCPKG_ROOT}" "${LUNA_VCPKG_ROOT}/bootstrap-vcpkg.sh"

- name: Cache vcpkg state
uses: actions/cache@v4
with:
path: |
${{ env.VCPKG_DEFAULT_BINARY_CACHE }}
${{ env.LUNA_VCPKG_ROOT }}/downloads
${{ github.workspace }}/build/vcpkg_installed
key: ${{ runner.os }}-vcpkg-${{ hashFiles('vcpkg.json', 'vcpkg-configuration.json', 'vcpkg-ports/**', 'vcpkg-triplets/**') }}
restore-keys: |
${{ runner.os }}-vcpkg-

- name: Configure
run: VCPKG_ROOT="${LUNA_VCPKG_ROOT}" cmake --preset vcpkg-x64-linux -DCMAKE_BUILD_TYPE=Release

- name: Build
run: cmake --build build --config Release

- name: Upload executable
uses: actions/upload-artifact@v4
with:
name: luna-linux
path: build/luna
68 changes: 68 additions & 0 deletions .github/workflows/windows.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,68 @@
name: windows

on:
push:
pull_request:

permissions:
contents: read

env:
LUNA_VCPKG_ROOT: ${{ github.workspace }}/vcpkg
VCPKG_DEFAULT_BINARY_CACHE: ${{ github.workspace }}/.cache/vcpkg/archives
VCPKG_BINARY_SOURCES: clear;files,${{ github.workspace }}/.cache/vcpkg/archives,readwrite

jobs:
build-windows:
runs-on: windows-2025-vs2026

steps:
- name: Check out repository
uses: actions/checkout@v4
with:
fetch-depth: 0
submodules: recursive

- name: Set up MSVC environment
uses: ilammy/msvc-dev-cmd@v1
with:
arch: amd64
vsversion: "18.0"

- name: Set up vcpkg
shell: bash
run: git clone https://github.com/microsoft/vcpkg.git "${LUNA_VCPKG_ROOT}"

- name: Create vcpkg cache directories
shell: bash
run: mkdir -p "${VCPKG_DEFAULT_BINARY_CACHE}" "${LUNA_VCPKG_ROOT}/downloads"

- name: Bootstrap vcpkg
run: |
$env:VCPKG_ROOT = $env:LUNA_VCPKG_ROOT
& "$env:LUNA_VCPKG_ROOT\bootstrap-vcpkg.bat"

- name: Cache vcpkg state
uses: actions/cache@v4
with:
path: |
${{ env.VCPKG_DEFAULT_BINARY_CACHE }}
${{ env.LUNA_VCPKG_ROOT }}/downloads
${{ github.workspace }}/build/vcpkg_installed
key: ${{ runner.os }}-vcpkg-${{ hashFiles('vcpkg.json', 'vcpkg-configuration.json', 'vcpkg-ports/**', 'vcpkg-triplets/**') }}
restore-keys: |
${{ runner.os }}-vcpkg-

- name: Configure
run: |
$env:VCPKG_ROOT = $env:LUNA_VCPKG_ROOT
cmake --preset vcpkg-x64-windows -DCMAKE_BUILD_TYPE=Release

- name: Build
run: cmake --build build --config Release

- name: Upload executable
uses: actions/upload-artifact@v4
with:
name: luna-windows
path: build/luna.exe
Loading