2023-10-20 11:56:01 +00:00
|
|
|
on:
|
|
|
|
- push
|
|
|
|
|
|
|
|
jobs:
|
|
|
|
build:
|
|
|
|
name: Build the server
|
|
|
|
runs-on: 'docker'
|
|
|
|
container:
|
|
|
|
node:current-alpine
|
|
|
|
steps:
|
2024-04-24 11:36:29 +00:00
|
|
|
- run: apk add git tar cmake make g++ linux-headers python3 xxd
|
2023-10-20 11:56:01 +00:00
|
|
|
- uses: actions/checkout@v3
|
|
|
|
- run: npm ci
|
|
|
|
working-directory: frontend
|
|
|
|
- run: npm run build
|
|
|
|
working-directory: frontend
|
|
|
|
- run: mkdir build
|
2024-05-21 13:37:26 +00:00
|
|
|
- run: cmake -DCMAKE_BUILD_TYPE=RelWithDebInfo ..
|
2023-10-20 11:56:01 +00:00
|
|
|
working-directory: build
|
2024-04-13 12:36:03 +00:00
|
|
|
- run: cmake --build . -j
|
2023-10-20 11:56:01 +00:00
|
|
|
working-directory: build
|
|
|
|
- uses: actions/upload-artifact@v3
|
|
|
|
with:
|
|
|
|
name: fileserver
|
|
|
|
path: build/fileserver
|