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
|
run: go get
|
||||||
|
|
||||||
- name: Build
|
- name: Build
|
||||||
run: GO111MODULE=on go build -v .
|
run: CGO_ENABLED=0 go build -v .
|
||||||
|
|
||||||
- name: start wakapi
|
- name: start wakapi
|
||||||
run: ./wakapi --config config.default.yml &
|
run: ./wakapi --config config.default.yml &
|
||||||
@ -97,4 +97,4 @@ jobs:
|
|||||||
run: go get
|
run: go get
|
||||||
|
|
||||||
- name: Build
|
- 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
|
shell: bash
|
||||||
run: |
|
run: |
|
||||||
GOOS=${{ matrix.GOOS }} GOARCH=${{ matrix.GOARCH }} \
|
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)
|
- name: Compress working folder (Windows PowerShell)
|
||||||
working-directory: ./dist
|
working-directory: ./dist
|
||||||
|
@ -11,7 +11,7 @@ ADD ./go.mod ./go.sum ./
|
|||||||
RUN go mod download
|
RUN go mod download
|
||||||
ADD . .
|
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
|
WORKDIR /staging
|
||||||
RUN mkdir ./data ./app && \
|
RUN mkdir ./data ./app && \
|
||||||
|
@ -2,9 +2,9 @@ package config
|
|||||||
|
|
||||||
import (
|
import (
|
||||||
"fmt"
|
"fmt"
|
||||||
|
"github.com/glebarez/sqlite"
|
||||||
"gorm.io/driver/mysql"
|
"gorm.io/driver/mysql"
|
||||||
"gorm.io/driver/postgres"
|
"gorm.io/driver/postgres"
|
||||||
"gorm.io/driver/sqlite"
|
|
||||||
"gorm.io/gorm"
|
"gorm.io/gorm"
|
||||||
)
|
)
|
||||||
|
|
||||||
|
@ -1,7 +1,7 @@
|
|||||||
#!/bin/bash
|
#!/bin/bash
|
||||||
|
|
||||||
echo "Compiling."
|
echo "Compiling."
|
||||||
go build
|
CGO_ENABLED=0 go build
|
||||||
|
|
||||||
if ! command -v newman &> /dev/null
|
if ! command -v newman &> /dev/null
|
||||||
then
|
then
|
||||||
|
Loading…
Reference in New Issue
Block a user