11 Commits

Author SHA1 Message Date
121786f61d Debug CI
Some checks failed
/ Build backend-glibc (push) Successful in 6m11s
/ Build backend-muslc (push) Successful in 5m41s
/ Build frontend (push) Successful in 1m44s
/ Package builds (push) Failing after 15s
2023-05-28 15:38:49 +02:00
a49799ba12 Fix CI
Some checks failed
/ Build backend-glibc (push) Successful in 6m23s
/ Build backend-muslc (push) Successful in 5m45s
/ Build frontend (push) Successful in 1m47s
/ Package builds (push) Failing after 13s
2023-05-28 15:28:26 +02:00
9de4ff8c93 Fix CI
Some checks failed
/ Build backend-glibc (push) Successful in 6m26s
/ Build backend-muslc (push) Successful in 5m42s
/ Build frontend (push) Successful in 2m6s
/ Package builds (push) Failing after 11s
2023-05-28 15:16:08 +02:00
8f3df65ba8 Fix CI
Some checks failed
/ Build backend-glibc (push) Successful in 3m56s
/ Build backend-muslc (push) Successful in 5m15s
/ Build frontend (push) Successful in 1m30s
/ Package builds (push) Failing after 1m36s
2023-05-28 15:01:07 +02:00
92d3653c03 Debug CI
Some checks failed
/ Build backend-glibc (push) Successful in 4m5s
/ Build backend-muslc (push) Successful in 5m7s
/ Build frontend (push) Successful in 1m20s
/ Package builds (push) Failing after 7s
2023-05-28 14:37:20 +02:00
b53e9cec61 Fix CI
Some checks are pending
/ Build backend-glibc (push) Successful in 4m11s
/ Build backend-muslc (push) Has started running
/ Build frontend (push) Has been cancelled
/ Package builds (push) Has been cancelled
2023-05-28 14:31:07 +02:00
8d2c21b179 Fix CI
Some checks failed
/ Build backend-glibc (push) Failing after 10s
/ Build frontend (push) Has been cancelled
/ Package builds (push) Has been cancelled
/ Build backend-muslc (push) Has been cancelled
2023-05-28 14:29:08 +02:00
cf228cc746 Fix CI
Some checks failed
/ Build backend-glibc (push) Failing after 8s
/ Build backend-muslc (push) Failing after 9s
/ Build frontend (push) Successful in 6m43s
/ Package builds (push) Has been skipped
2023-05-28 14:21:15 +02:00
8b0f3358f4 Fix CI
Some checks failed
/ Build backend-glibc (push) Failing after 16s
/ Build backend-muslc (push) Failing after 1m19s
/ Build frontend (push) Failing after 43s
/ Package builds (push) Has been skipped
2023-05-28 14:18:05 +02:00
136f5bbb5a Fix CI 2023-05-26 13:30:34 +02:00
2d0d9c69e3 Added build 2023-05-26 13:20:52 +02:00
3 changed files with 111 additions and 0 deletions

106
.gitea/workflows/build.yaml Normal file
View File

@@ -0,0 +1,106 @@
on:
- push
- workflow-call
env:
ACTIONS_STEP_DEBUG: true
jobs:
build-glibc:
name: Build backend-glibc
runs-on: 'docker'
container:
image: rust:bullseye
steps:
- run: apt-get update
- run: apt-get install git nodejs -y
- uses: actions/checkout@v3
- name: Build
run: cargo build --release
working-directory: backend
- name: Upload executable
uses: actions/upload-artifact@v3
with:
name: backend-glibc
path: backend/target/release/backend_rust
build-muslc:
name: Build backend-muslc
runs-on: 'docker'
container:
image: rust:alpine
steps:
- name: Install dependencies
run: apk add pkgconf musl-dev git nodejs
- uses: actions/checkout@v3
- name: Build
run: cargo build --release
working-directory: backend
- name: Upload executable
uses: actions/upload-artifact@v3
with:
name: backend-muslc
path: backend/target/release/backend_rust
build-frontend:
name: Build frontend
runs-on: 'docker'
container:
image: node:current-alpine
steps:
- run: apk add git tar
- uses: actions/checkout@v3
- name: Install packages
run: yarn install --frozen-lockfile
working-directory: frontend
- name: Lint
run: yarn lint
working-directory: frontend
- name: Build
run: yarn build
working-directory: frontend
- run: tar -cf ../frontend.tar *
working-directory: frontend/dist
- name: Upload frontend
uses: actions/upload-artifact@v3
with:
name: frontend.tar
path: frontend/frontend.tar
package:
name: Package builds
runs-on: 'docker'
container:
image: node:current-alpine
needs: [build-glibc, build-muslc, build-frontend]
steps:
- name: Install packages
run: apk add tar xz
- run: mkdir static
- name: Download frontend
uses: https://github.com/actions/download-artifact@v3
with:
name: frontend.tar
path: static
- name: Download backend-glibc
uses: https://github.com/actions/download-artifact@v3
with:
name: backend-glibc
- run: ls -laR
- run: tar -xf frontend.tar && rm frontend.tar
working-directory: static
- name: Package backend-glibc
run: mv backend_rust server && tar -cvJf linux-x64-glibc.tar.xz server static
- name: Upload package-glibc
uses: actions/upload-artifact@v3
with:
name: linux-x64-glibc.tar.xz
path: linux-x64-glibc.tar.xz
- name: Download backend-muslc
uses: https://github.com/actions/download-artifact@v3
with:
name: backend-muslc
- name: Package backend-muslc
run: mv backend_rust server && tar -cvJf linux-x64-muslc.tar.xz server static
- name: Upload package-muslc
uses: actions/upload-artifact@v3
with:
name: linux-x64-muslc.tar.xz
path: linux-x64-muslc.tar.xz

View File

@@ -0,0 +1,5 @@
on:
push:
tags: '*'
jobs: {}