mirror of
https://github.com/spice2x/spice2x.github.io.git
synced 2026-08-02 14:50:41 -07:00
07c78caf01
## Link to GitHub Issue, if one exists n/a ## Description of change Previously, the artifact produced by the CI action was `spice2x.zip`. With this change, it will be `spice2x-ci-1234567.zip` where 1234567 is the first 7 chars of the commit hash. Note that for PRs, github produces a merge commit before queueing the action, so the commit hash won't match up with the HEAD of a fork. The goal is to just generate unique-ish filenames so this is not a huge deal. ## Compiling ## Testing Action has been run in the fork.
27 lines
767 B
YAML
27 lines
767 B
YAML
on: [push, pull_request]
|
|
name: Continuous Integration
|
|
concurrency:
|
|
group: ${{ github.workflow }}-${{ github.ref }}
|
|
cancel-in-progress: true
|
|
|
|
jobs:
|
|
fw-ci:
|
|
name: Build
|
|
runs-on: ubuntu-latest
|
|
defaults:
|
|
run:
|
|
working-directory: ./src/spice2x
|
|
steps:
|
|
- uses: actions/checkout@v4
|
|
- name: Calculate commit SHA
|
|
id: vars
|
|
run: |
|
|
calculatedSha=$(git rev-parse --short ${{ github.sha }})
|
|
echo "COMMIT_SHORT_SHA=$calculatedSha" >> $GITHUB_ENV
|
|
- name: Compile
|
|
run: ./build_docker.sh
|
|
- uses: actions/upload-artifact@v4
|
|
with:
|
|
name: spice2x-ci-${{ env.COMMIT_SHORT_SHA }}
|
|
path: src/spice2x/bin
|
|
if-no-files-found: error |