Implement REST command #182
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Build | |
on: | |
pull_request: | |
paths-ignore: | |
- '.images/*' | |
- 'LICENSE' | |
- '.gitignore' | |
- '*.md' | |
branches: [ master ] | |
push: | |
paths-ignore: | |
- '.images/*' | |
- 'LICENSE' | |
- '.gitignore' | |
- '*.md' | |
branches: [ master ] | |
jobs: | |
Xbox: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Install and Setup Dependencies | |
run: | | |
sudo apt-get update -y && sudo apt-get install -y flex bison clang lld llvm | |
- name: Checkout Repository | |
uses: actions/checkout@v3 | |
with: | |
submodules: recursive | |
- name: Compile | |
run: | | |
eval $(src/libs/nxdk/bin/activate -s) | |
make -f Makefile.nxdk -j$(nproc) | |
- name: Upload Artifact | |
uses: actions/upload-artifact@v3 | |
with: | |
name: dash_xbox | |
path: | | |
LithiumX.iso | |
bin | |
Windows: | |
runs-on: windows-latest | |
defaults: | |
run: | |
shell: msys2 {0} | |
steps: | |
- name: Setup MSYS2 | |
uses: msys2/setup-msys2@v2 | |
- name: Install and Setup Dependencies | |
run: | | |
pacman -S mingw-w64-x86_64-make --noconfirm | |
pacman -S mingw-w64-x86_64-cmake --noconfirm | |
pacman -S mingw-w64-x86_64-gcc --noconfirm | |
pacman -S mingw-w64-x86_64-SDL2 --noconfirm | |
pacman -S mingw-w64-x86_64-libjpeg-turbo --noconfirm | |
- name: Checkout Repository | |
uses: actions/checkout@v3 | |
with: | |
submodules: recursive | |
- name: Compile | |
run: | | |
mkdir build && cd build | |
cmake .. -G "MinGW Makefiles" | |
cmake --build . | |
- name: Upload Artifact | |
uses: actions/upload-artifact@v3 | |
with: | |
name: dash_windows | |
path: | | |
build/LithiumX.exe |