Compare commits
2 Commits
Author | SHA1 | Date | |
---|---|---|---|
![]() |
c4fe532e88 | ||
![]() |
838ac4e7c3 |
16
.github/workflows/build.yml
vendored
16
.github/workflows/build.yml
vendored
@@ -31,11 +31,14 @@ jobs:
|
||||
- name: Install dependecies
|
||||
run: npm install
|
||||
|
||||
- name: Build Quasar SPA
|
||||
run: |
|
||||
npm install -g @quasar/cli quasar build
|
||||
- name: Install Quasar CLI
|
||||
run: npm install -g @quasar/cli
|
||||
|
||||
- name: Build Quasar SPA
|
||||
run: quasar build
|
||||
|
||||
- name: Set up Go
|
||||
working-directory: ./backend
|
||||
uses: actions/setup-go@v5
|
||||
with:
|
||||
go-version: '1.24.0'
|
||||
@@ -63,11 +66,10 @@ jobs:
|
||||
- name: Build go backend binary
|
||||
working-directory: ./backend
|
||||
run: |
|
||||
mkdir -p build
|
||||
if [ "${{ matrix.goos }}" == "windows" ]; then
|
||||
GOOS=${{ matrix.goos }} GOARCH=${{ matrix.goarch }} go build -o build/server-${{ matrix.goos }}-${{ matrix.goarch }}.exe main.go
|
||||
GOOS=${{ matrix.goos }} GOARCH=${{ matrix.goarch }} go build -o ../server-${{ matrix.goos }}-${{ matrix.goarch }}.exe main.go
|
||||
else
|
||||
GOOS=${{ matrix.goos }} GOARCH=${{ matrix.goarch }} go build -o build/server-${{ matrix.goos }}-${{ matrix.goarch }} main.go
|
||||
GOOS=${{ matrix.goos }} GOARCH=${{ matrix.goarch }} go build -o ../server-${{ matrix.goos }}-${{ matrix.goarch }} main.go
|
||||
fi
|
||||
|
||||
- name: Upload build artifacts
|
||||
@@ -76,4 +78,4 @@ jobs:
|
||||
name: lightcontroller-${{ matrix.goos }}-${{ matrix.goarch }}
|
||||
path: |
|
||||
./dist/spa
|
||||
./backend/build/
|
||||
server-${{ matrix.goos }}-${{ matrix.goarch }}${{ (matrix.goos == 'windows' && '.exe') || '' }}
|
||||
|
Reference in New Issue
Block a user