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