diff --git a/.github/workflows/tests.yml b/.github/workflows/tests.yml index 4d6705ed..36e231c0 100644 --- a/.github/workflows/tests.yml +++ b/.github/workflows/tests.yml @@ -25,7 +25,10 @@ jobs: - name: Check out code into the Go module directory uses: actions/checkout@v2 - - name: Get dependencies + - name: Get C dependencies + run: apt-get install -y libdlib-dev libblas-dev liblapack-dev libjpeg62-turbo-dev + + - name: Get GO dependencies run: | go get -v -t -d ./... if [ -f Gopkg.toml ]; then @@ -38,32 +41,32 @@ jobs: - name: Test run: go test -v ./... - + test-ui: name: Test UI runs-on: ubuntu-latest - + defaults: run: working-directory: ui - + strategy: matrix: node-version: [10.x, 14.x] steps: - uses: actions/checkout@v2 - + - name: Use Node.js ${{ matrix.node-version }} uses: actions/setup-node@v1 with: node-version: ${{ matrix.node-version }} - + - name: Install dependencies run: npm install - + - name: Build run: npm run build --if-present - + - name: Test run: npm test diff --git a/Dockerfile b/Dockerfile index 7193bfb1..815a226f 100644 --- a/Dockerfile +++ b/Dockerfile @@ -26,6 +26,9 @@ FROM --platform=${BUILDPLATFORM:-linux/amd64} golang:1.15-buster AS api RUN apt-get update RUN apt-get install -y gcc-aarch64-linux-gnu libc6-dev-arm64-cross gcc-arm-linux-gnueabihf libc6-dev-armhf-cross +# Install go-face dependencies +RUN apt-get install -y libdlib-dev libblas-dev liblapack-dev libjpeg62-turbo-dev + COPY --from=tonistiigi/xx:golang / / ARG TARGETPLATFORM @@ -42,6 +45,9 @@ RUN go mod download ENV CGO_ENABLED 1 RUN go install github.com/mattn/go-sqlite3 +# Build go-face +RUN go install github.com/Kagami/go-face + # Copy api source COPY api /app