Skip to content

Continuous Integration #13

Continuous Integration

Continuous Integration #13

Workflow file for this run

name: Continuous Integration
on:
workflow_dispatch:
push:
branches: [ master ]
tags-ignore:
- 'v*' # Don't run if tagged as v*.
pull_request:
branches: [ master ]
jobs:
build-windows:
runs-on: windows-latest
steps:
- uses: actions/checkout@v3
- name: run-vcpkg
uses: lukka/[email protected]
with:
vcpkgJsonGlob: ../src/vcpkg.json,
vcpkgGitCommitId: 5b1214315250939257ef5d62ecdcbca18cf4fb1c
- name: Install dependencies
run: vcpkg install --triplet x64-windows
working-directory: src
- name: checkout_public
run: git clone https://github.com/YSCEDC/ysce_public.git
- name: mkdir
run: mkdir ci_windows
- name: cmake
run: cmake ../src -DCMAKE_PREFIX_PATH=D:/a/YSCE/YSCE/vcpkg/installed/x64-windows -DCMAKE_TOOLCHAIN_FILE=D:/a/YSCE/YSCE/vcpkg/scripts/buildsystems/vcpkg.cmake
working-directory: ./ci_windows
- name: build
run: cmake --build . --config Release --parallel --target ysflight64_gl1 ysflight64_gl2 ysflight64_gl1demo ysflight64_gl2demo ysflight64_nownd
# Cannot build ysflight64_d3d9 in github workflow because the virtual machine does not have DirectX9 libraries.
working-directory: ./ci_windows
- uses: actions/upload-artifact@v3
with:
name: ys-build-windows
path: ./ci_windows/main/Release
retention-days: 14
build-linux:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Install vcpkg
uses: lukka/[email protected]
with:
vcpkgArguments: --triplet x64-linux
vcpkgGitCommitId: 5b1214315250939257ef5d62ecdcbca18cf4fb1c
- name: Install dependencies
run: vcpkg install --triplet x64-linux
working-directory: src
- name: checkout_public
run: git clone https://github.com/YSCEDC/ysce_public.git
- name: mkdir
run: mkdir ci_ubuntu
- name: apt-get-update
run: sudo apt-get update
- name: install-OpenGL
run: sudo apt-get install libglu1-mesa-dev mesa-common-dev
- name: install-ALSA
run: sudo apt-get install libasound2 libasound2-dev
- name: install-PulseAudio
run: sudo apt-get install pulseaudio libpulse-dev
- name: install-Python
run: sudo apt-get install python3 python-is-python3
- name: cmake
run: cmake ../src -DCMAKE_BUILD_TYPE=Release -DCMAKE_PREFIX_PATH=/home/runner/work/YSCE/YSCE/vcpkg/installed/x64-linux -DCMAKE_TOOLCHAIN_FILE=/home/runner/work/YSCE/YSCE/vcpkg/scripts/buildsystems/vcpkg.cmake
working-directory: ./ci_ubuntu
- name: build
run: cmake --build . --config Release --parallel --target ysflight64_gl1 ysflight64_gl2 ysflight64_gl1demo ysflight64_gl2demo ysflight64_nownd
working-directory: ./ci_ubuntu
- uses: actions/upload-artifact@v3
with:
name: ys-build-linux
path: ./ci_ubuntu/main/
retention-days: 14
# MacOS was here, but Nodoka kicked it off a short pier.