From 79661d6bd794394c871ab33e606f8a68d963a485 Mon Sep 17 00:00:00 2001 From: Shinmera Date: Tue, 30 Jan 2024 11:58:47 +0100 Subject: [PATCH] Try building on windows and upload artifacts/release zip --- .github/workflows/examples.yml | 29 +++++++++++++++++++++++------ 1 file changed, 23 insertions(+), 6 deletions(-) diff --git a/.github/workflows/examples.yml b/.github/workflows/examples.yml index e38fdd61a..9e17b69ee 100644 --- a/.github/workflows/examples.yml +++ b/.github/workflows/examples.yml @@ -4,7 +4,14 @@ permissions: contents: write jobs: build: - runs-on: ubuntu-latest + strategy: + matrix: + platform: [ubuntu-latest] + fail-fast: false + runs-on: ${{ matrix.platform }} + defaults: + run: + shell: bash steps: - name: Restore cache id: cache-ql @@ -17,7 +24,6 @@ jobs: - name: Install Roswell env: LISP: sbcl-bin/2.4.0 - ROSWELL_INSTALL_DIR: /usr run: | curl -L https://raw.githubusercontent.com/roswell/roswell/master/scripts/install-for-ci.sh | sh echo "$HOME/.roswell/bin" >> $GITHUB_PATH @@ -40,8 +46,19 @@ jobs: --eval "(push \"$GITHUB_WORKSPACE\" ql:*local-project-directories*)" \ --eval '(asdf:make :trial-examples)' \ --non-interactive - - name: Release - uses: softprops/action-gh-release@v1 + - name: Make release ZIP + run: | + cd examples/bin/ && zip -r /tmp/trial-examples-{{ runner.os }}.zip * + - name: Upload artifact + uses: actions/upload-artifact@v4 + with: + name: trial-examples-{{ runner.os }} + path: /tmp/trial-examples-{{ runner.os }}.zip + - name: Create release + id: create_release + uses: ncipollo/release-action@v1 + continue-on-error: true with: - append_body: true - files: trial-examples/bin/ + allowUpdates: true + name: Release ${{ github.ref }} + artifacts: /tmp/trial-examples-{{ runner.os }}.zip