This commit is contained in:
+33
-31
@@ -1,32 +1,34 @@
|
|||||||
on: [push, pull_request]
|
on: [push, pull_request]
|
||||||
name: Continuous Integration
|
name: Continuous Integration
|
||||||
concurrency:
|
concurrency:
|
||||||
group: ${{ github.workflow }}-${{ github.ref }}
|
group: ${{ github.workflow }}-${{ github.ref }}
|
||||||
cancel-in-progress: true
|
cancel-in-progress: true
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
fw-ci:
|
fw-ci:
|
||||||
name: Build
|
name: Build
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
defaults:
|
defaults:
|
||||||
run:
|
run:
|
||||||
working-directory: ./src/spice2x
|
working-directory: ./src/spice2x
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v5
|
- uses: actions/checkout@v5
|
||||||
- name: Set ccache environment variables
|
- name: Set ccache environment variables
|
||||||
run: |
|
run: |
|
||||||
echo "CCACHE_DIR=${{ github.workspace }}/src/spice2x/.ccache" >> $GITHUB_ENV
|
echo "CCACHE_DIR=${{ github.workspace }}/src/spice2x/.ccache" >> $GITHUB_ENV
|
||||||
- name: Install ccache
|
- name: Install ccache
|
||||||
uses: hendrikmuhs/ccache-action@v1.2.23
|
uses: hendrikmuhs/ccache-action@v1.2.23
|
||||||
- name: Calculate commit SHA
|
with:
|
||||||
id: vars
|
update-package-index: true
|
||||||
run: |
|
- name: Calculate commit SHA
|
||||||
calculatedSha=$(git rev-parse --short ${{ github.sha }})
|
id: vars
|
||||||
echo "COMMIT_SHORT_SHA=$calculatedSha" >> $GITHUB_ENV
|
run: |
|
||||||
- name: Compile
|
calculatedSha=$(git rev-parse --short ${{ github.sha }})
|
||||||
run: ./build_docker.sh
|
echo "COMMIT_SHORT_SHA=$calculatedSha" >> $GITHUB_ENV
|
||||||
- uses: actions/upload-artifact@v6
|
- name: Compile
|
||||||
with:
|
run: ./build_docker.sh
|
||||||
name: spice2x-ci-${{ env.COMMIT_SHORT_SHA }}
|
- uses: actions/upload-artifact@v6
|
||||||
path: src/spice2x/bin
|
with:
|
||||||
|
name: spice2x-ci-${{ env.COMMIT_SHORT_SHA }}
|
||||||
|
path: src/spice2x/bin
|
||||||
if-no-files-found: error
|
if-no-files-found: error
|
||||||
Reference in New Issue
Block a user