Merge pull request #352 from V10lator/docker

Add Docker support for Linux
This commit is contained in:
coco875
2025-07-04 23:37:03 +00:00
committed by GitHub
4 changed files with 117 additions and 13 deletions
+22
View File
@@ -300,6 +300,28 @@ jobs:
yamls
gamecontrollerdb.txt
build-linux-docker:
needs: generate-port-o2r
runs-on: ubuntu-22.04
steps:
- uses: actions/checkout@v4
with:
submodules: recursive
fetch-depth: 0
- name: Docker caching
uses: ScribeMD/docker-cache@0.5.0
id: cache
continue-on-error: true
with:
key: sk-docker-cache-${{ hashFiles('Dockerfile') }}
- name: Build docker image
if: steps.cache.outputs.cache-hit != 'true'
run: docker build . -t spaghetti
- name: Confiure
run: docker run --rm -v ${PWD}:/project spaghetti cmake -H. -Bbuild-cmake -GNinja -DCMAKE_BUILD_TYPE=Release
- name: Build spaghetti
run: docker run --rm -v ${PWD}:/project spaghetti cmake --build build-cmake --config Release -j$(nproc)
build-switch:
needs: generate-port-o2r
runs-on: ubuntu-latest