mirror of
https://github.com/open-goal/jak-project
synced 2026-05-26 07:39:12 -04:00
27 lines
848 B
YAML
27 lines
848 B
YAML
name: Linux Workflow
|
|
on: [push, pull_request]
|
|
|
|
jobs:
|
|
build:
|
|
name: Build and Test Project (Linux)
|
|
runs-on: ubuntu-latest
|
|
steps:
|
|
- name: Checkout Repository
|
|
uses: actions/checkout@v2
|
|
- name: Get Package Dependencies
|
|
run: sudo apt install gcc make cmake build-essential g++ nasm clang-format
|
|
- name: Initialize Submodules
|
|
run: git submodule update --init --recursive
|
|
- name: Build Project with CMake
|
|
run: |
|
|
mkdir build
|
|
cd build
|
|
cmake ..
|
|
make -j
|
|
- name: Test Project with gTest
|
|
run: ./test.sh
|
|
- name: Check Clang-Formatting
|
|
run: |
|
|
chmod +x ./third-party/run-clang-format/run-clang-format.py
|
|
./third-party/run-clang-format/run-clang-format.py -r common decompiler game goalc test --color always
|