From ac617ef0145dec3af55e61df4b085c8f58d7e0d4 Mon Sep 17 00:00:00 2001 From: 6arelyFuture Date: Tue, 18 Jun 2024 17:17:38 +0000 Subject: [PATCH] build: attempt to create release from a Docker container (#6) --- .gitea/scripts/ci.sh | 4 ++++ .gitea/workflows/ci.yml | 10 ++++++++-- 2 files changed, 12 insertions(+), 2 deletions(-) diff --git a/.gitea/scripts/ci.sh b/.gitea/scripts/ci.sh index 3973ddc..4481c43 100755 --- a/.gitea/scripts/ci.sh +++ b/.gitea/scripts/ci.sh @@ -2,6 +2,10 @@ set -e +echo "Downloading dependencies" +apt-get update > /dev/null 2>&1 +apt-get install -y build-essential software-properties-common > /dev/null 2>&1 + # setup mkdir build cd build diff --git a/.gitea/workflows/ci.yml b/.gitea/workflows/ci.yml index b593004..c726db6 100644 --- a/.gitea/workflows/ci.yml +++ b/.gitea/workflows/ci.yml @@ -14,8 +14,14 @@ jobs: lfs: false - name: Create release - run: | - ./.gitea/scripts/ci.sh + uses: addnab/docker-run-action@v3 + with: + image: ubuntu:noble + options: --volumes-from=${{ env.JOB_CONTAINER_NAME }} + run: | + cd ${{ github.workspace }} + export TZ=America/Los_Angeles + ./.gitea/scripts/ci.sh - name: Upload release uses: actions/upload-artifact@v3