From ac7c9463b41d0fd742bbb872476f799028092891 Mon Sep 17 00:00:00 2001 From: Anton Date: Wed, 27 Dec 2023 20:56:04 +0200 Subject: [PATCH] Add caching, use a compatible base image --- .github/workflows/build.yml | 5 +++++ Dockerfile | 2 +- 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 3598a09..35834cd 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -34,6 +34,11 @@ jobs: - run: npm install - run: npm run build -- --release + - uses: actions/cache@v3 + with: + path: target + key: ${{ matrix.target }}-rust-target + - uses: actions/upload-artifact@v3 with: name: binary-${{ matrix.target }} diff --git a/Dockerfile b/Dockerfile index 7c2dc5d..ab705ce 100644 --- a/Dockerfile +++ b/Dockerfile @@ -1,4 +1,4 @@ -FROM node:20-bookworm +FROM ghcr.io/catthehacker/ubuntu:js-22.04 RUN apt-get update RUN apt-get install -yqq wget build-essential yasm libavutil-dev libavcodec-dev libavformat-dev libavfilter-dev libavfilter-dev libavdevice-dev libswresample-dev libfftw3-dev libclang-dev ffmpeg