mirror of
https://github.com/muety/wakapi.git
synced 2023-08-10 21:12:56 +03:00
Merge branch 'sqlite-go-replacement'
# Conflicts: # go.mod # go.sum
This commit is contained in:
commit
ffb529f4cf
4
.github/workflows/ci.yml
vendored
4
.github/workflows/ci.yml
vendored
@ -47,7 +47,7 @@ jobs:
|
||||
run: go get
|
||||
|
||||
- name: Build
|
||||
run: GO111MODULE=on go build -v .
|
||||
run: CGO_ENABLED=0 go build -v .
|
||||
|
||||
- name: start wakapi
|
||||
run: ./wakapi --config config.default.yml &
|
||||
@ -97,4 +97,4 @@ jobs:
|
||||
run: go get
|
||||
|
||||
- name: Build
|
||||
run: go build -v .
|
||||
run: CGO_ENABLED=0 go build -v .
|
||||
|
2
.github/workflows/release.yml
vendored
2
.github/workflows/release.yml
vendored
@ -64,7 +64,7 @@ jobs:
|
||||
shell: bash
|
||||
run: |
|
||||
GOOS=${{ matrix.GOOS }} GOARCH=${{ matrix.GOARCH }} \
|
||||
CC=${{ matrix.CC }} CGO_ENABLED=1 go build -v -ldflags '-w -s' ../
|
||||
CC=${{ matrix.CC }} CGO_ENABLED=0 go build -v -ldflags '-w -s' ../
|
||||
|
||||
- name: Compress working folder (Windows PowerShell)
|
||||
working-directory: ./dist
|
||||
|
@ -11,7 +11,7 @@ ADD ./go.mod ./go.sum ./
|
||||
RUN go mod download
|
||||
ADD . .
|
||||
|
||||
RUN go build -ldflags "-s -w" -v -o wakapi main.go
|
||||
RUN CGO_ENABLED=0 go build -ldflags "-s -w" -v -o wakapi main.go
|
||||
|
||||
WORKDIR /staging
|
||||
RUN mkdir ./data ./app && \
|
||||
|
@ -2,9 +2,9 @@ package config
|
||||
|
||||
import (
|
||||
"fmt"
|
||||
"github.com/glebarez/sqlite"
|
||||
"gorm.io/driver/mysql"
|
||||
"gorm.io/driver/postgres"
|
||||
"gorm.io/driver/sqlite"
|
||||
"gorm.io/gorm"
|
||||
)
|
||||
|
||||
|
@ -1,7 +1,7 @@
|
||||
#!/bin/bash
|
||||
|
||||
echo "Compiling."
|
||||
go build
|
||||
CGO_ENABLED=0 go build
|
||||
|
||||
if ! command -v newman &> /dev/null
|
||||
then
|
||||
|
Loading…
Reference in New Issue
Block a user