From 6614a15cb4f0215636628733c752ffad595a0fab Mon Sep 17 00:00:00 2001 From: Mutzi Date: Fri, 20 Oct 2023 13:56:01 +0200 Subject: [PATCH] Added gitea action --- .gitea/workflows/build.yaml | 25 +++++++++++++++++++++++++ 1 file changed, 25 insertions(+) create mode 100644 .gitea/workflows/build.yaml diff --git a/.gitea/workflows/build.yaml b/.gitea/workflows/build.yaml new file mode 100644 index 0000000..8da6192 --- /dev/null +++ b/.gitea/workflows/build.yaml @@ -0,0 +1,25 @@ +on: + - push + +jobs: + build: + name: Build the server + runs-on: 'docker' + container: + node:current-alpine + steps: + - run: apk add git tar cmake make g++ + - uses: actions/checkout@v3 + - run: npm ci + working-directory: frontend + - run: npm run build + working-directory: frontend + - run: mkdir build + - run: cmake -DCMAKE_BUILD_TYPE=Release .. + working-directory: build + - run: cmake --build . -j + working-directory: build + - uses: actions/upload-artifact@v3 + with: + name: fileserver + path: build/fileserver