ops: Add gitea actions CI #1

Merged
brock merged 19 commits from feature/gitea_actions into main 2024-01-27 23:18:48 -08:00
Showing only changes of commit 63a82cff81 - Show all commits

View File

@@ -22,7 +22,7 @@ jobs:
- -
name: Restore docker image name: Restore docker image
id: cache-docker id: cache-docker
uses: https://github.com/actions/cache@v3 uses: actions/cache@v3
with: with:
path: /tmp/docker path: /tmp/docker
key: ${{ runner.os }}-docker-${{ hashFiles('builder.Dockerfile') }} key: ${{ runner.os }}-docker-${{ hashFiles('builder.Dockerfile') }}
@@ -45,7 +45,7 @@ jobs:
- -
name: Restore docker image name: Restore docker image
id: cache-docker id: cache-docker
uses: https://github.com/actions/cache@v3 uses: actions/cache@v3
with: with:
path: /tmp/docker path: /tmp/docker
key: ${{ runner.os }}-docker-${{ hashFiles('builder.Dockerfile') }} key: ${{ runner.os }}-docker-${{ hashFiles('builder.Dockerfile') }}
@@ -80,13 +80,12 @@ jobs:
mkdir -p "$staging" mkdir -p "$staging"
cp -r tests/unittest/build/artifacts/gcov "$staging" cp -r tests/unittest/build/artifacts/gcov "$staging"
tar czf "$staging.tar.gz" "$staging" tar czf "$staging.tar.gz" "$staging"
echo "ASSET=$staging.tar.gz" >> $GITEA_ENV
- -
name: Archive artifacts name: Archive artifacts
uses: actions/upload-artifact@v3 uses: actions/upload-artifact@v3
with: with:
name: reports-${{gitea.run_number}} name: reports-${{gitea.run_number}}
path: ${{ env.ASSET }} path: reports-${{gitea.run_number}}.tar.gz
retention-days: 3 retention-days: 3
# TODO: delete cache on merge. # TODO: delete cache on merge.