build static
This commit is contained in:
+17
-21
@@ -16,23 +16,6 @@ on:
|
||||
# A workflow run is made up of one or more jobs that can run sequentially or in parallel
|
||||
jobs:
|
||||
build-backend:
|
||||
runs-on: ubuntu-latest
|
||||
container: "debian:stable-slim"
|
||||
steps:
|
||||
- uses: actions/checkout@v3
|
||||
- uses: actions/setup-go@v4
|
||||
with:
|
||||
go-version: 'stable'
|
||||
- name: Prepare
|
||||
run: |
|
||||
apt-get update
|
||||
apt-get install --yes --no-install-recommends make gcc libgstreamer1.0-dev libgstreamer-plugins-base1.0-dev
|
||||
- name: Build
|
||||
run: make build
|
||||
- uses: ncipollo/release-action@v1
|
||||
with:
|
||||
artifacts: "release.tar.gz,foo/*.txt"
|
||||
build-frontend:
|
||||
runs-on: ubuntu-latest
|
||||
container: "debian:stable-slim"
|
||||
steps:
|
||||
@@ -41,7 +24,20 @@ jobs:
|
||||
with:
|
||||
node-version: 18
|
||||
cache: 'npm'
|
||||
- name: Prepare
|
||||
run: npm --prefix static ci
|
||||
- name: Build
|
||||
run: npm --prefix static run build
|
||||
- name: Build Frontend
|
||||
run: npm --prefix static ci && npm --prefix static run build
|
||||
- uses: actions/setup-go@v4
|
||||
with:
|
||||
go-version: 'stable'
|
||||
- name: Prepare Backend
|
||||
run: |
|
||||
apt-get update
|
||||
apt-get install --yes --no-install-recommends make gcc libgstreamer1.0-dev libgstreamer-plugins-base1.0-dev
|
||||
- name: Build Backend
|
||||
run: make build-static
|
||||
- name: Archive artifacts
|
||||
uses: actions/upload-artifact@v3
|
||||
with:
|
||||
name: binary
|
||||
path: service
|
||||
retention-days: 5
|
||||
@@ -0,0 +1 @@
|
||||
service
|
||||
Reference in New Issue
Block a user