summaryrefslogtreecommitdiff
path: root/.github
diff options
context:
space:
mode:
authorcoco875 <59367621+coco875@users.noreply.github.com>2025-07-04 23:37:03 +0000
committerGitHub <noreply@github.com>2025-07-04 23:37:03 +0000
commit1effdc5b853bdff336fd0bbead4d03b546cb4406 (patch)
treeec98c13e4ba58328a203233a23fcddac19cc4ae9 /.github
parentbbd14984a2c61a773e29f321b214e2644ce28930 (diff)
parentfd5acc8c9a15c3fa471b129dceaf2d535a58f35d (diff)
Merge pull request #352 from V10lator/docker
Add Docker support for Linux
Diffstat (limited to '.github')
-rw-r--r--.github/workflows/main.yml22
1 files changed, 22 insertions, 0 deletions
diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml
index 5eda45dc6..79be5c107 100644
--- a/.github/workflows/main.yml
+++ b/.github/workflows/main.yml
@@ -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