(I hate this so much)
This commit is contained in:
+11
-11
@@ -13,22 +13,22 @@ jobs:
|
||||
working-directory: ./src/spice2x
|
||||
steps:
|
||||
- uses: actions/checkout@v5
|
||||
- name: Set ccache environment variables
|
||||
run: |
|
||||
echo "CCACHE_DIR=${{ github.workspace }}/src/spice2x/.ccache" >> $GITHUB_ENV
|
||||
- name: Install ccache
|
||||
uses: hendrikmuhs/ccache-action@v1.2.23
|
||||
with:
|
||||
update-package-index: true
|
||||
- name: Calculate commit SHA
|
||||
id: vars
|
||||
run: |
|
||||
calculatedSha=$(git rev-parse --short ${{ github.sha }})
|
||||
echo "COMMIT_SHORT_SHA=$calculatedSha" >> $GITHUB_ENV
|
||||
echo "sha=$calculatedSha" >> "$GITHUB_OUTPUT"
|
||||
echo "bin=${{ github.workspace }}/src/spice2x/bin" >> "$GITHUB_OUTPUT"
|
||||
- name: Compile
|
||||
run: ./build_docker.sh
|
||||
run: |
|
||||
docker build --pull "$PWD/external/docker" -t spicetools/deps --platform linux/x86_64
|
||||
docker build --build-context gitroot="$PWD/../../.git" . -t spicetools/spice:latest
|
||||
docker run --name spice-build spicetools/spice:latest
|
||||
mkdir -p "$PWD/bin"
|
||||
docker cp spice-build:/src/src/spice2x/bin/. "$PWD/bin"
|
||||
docker rm spice-build
|
||||
- uses: actions/upload-artifact@v6
|
||||
with:
|
||||
name: spice2x-ci-${{ env.COMMIT_SHORT_SHA }}
|
||||
path: ${{ github.workspace }}/src/spice2x/bin
|
||||
name: spice2x-ci-${{ steps.vars.outputs.sha }}
|
||||
path: ${{ steps.vars.outputs.bin }}
|
||||
if-no-files-found: error
|
||||
Reference in New Issue
Block a user