Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

buildv3.yml #6

Open
wants to merge 5 commits into
base: Master
Choose a base branch
from
Open
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
41 changes: 41 additions & 0 deletions .github/workflows/c-cpp.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,41 @@
name: C/C++ CI

on:
push:
branches: [ Master ]
pull_request:
branches: [ Master ]

jobs:
build:

runs-on: windows-latest

steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v2

- name: Create Build Directory
run: cmake -E make_directory ${{github.workspace}}/build

- name: Install Packages
run: |
sudo apt-get update -qq
sudo apt-get install -y gcc-multilib python3 curl zip unzip
sudo apt-get install -y --no-install-recommends libx11-dev libxcursor-dev libxrandr-dev libxinerama-dev libxi-dev libxext-dev libxfixes-dev libgl1-mesa-dev

- name: Configure Emscripten
shell: bash

# Change the directory to be emsdk instead of the project root
working-directory: ${{github.workspace}}/emsdk
run: |
./emsdk install latest
./emsdk activate latest

- name: Configure CMake
run: cmake -S . -B build -DCMAKE_BUILD_TYPE=Release -Wno-dev -DCMAKE_TOOLCHAIN_FILE=$GITHUB_WORKSPACE/emsdk/upstream/emscripten/cmake/Modules/Platform/Emscripten.cmake

- name: Build

run: cmake --build ./build --config Release