remove caching step, should now be done by setup-ci action #285
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Release Builds | |
on: push | |
env: | |
SME_DEPS_COMMON_VERSION: "2024.04.10" | |
DUNE_COPASI_VERSION: "master" | |
jobs: | |
build: | |
runs-on: ${{ matrix.os }} | |
strategy: | |
fail-fast: false | |
matrix: | |
include: | |
- os: "ubuntu-20.04" | |
shell: "bash" | |
- os: "macos-13" | |
shell: "bash" | |
- os: "windows-2022" | |
shell: "msys2 {0}" | |
defaults: | |
run: | |
shell: ${{ matrix.shell }} | |
steps: | |
- uses: spatial-model-editor/setup-ci@v1 | |
- uses: actions/checkout@v4 | |
- run: ./build.sh | |
- uses: actions/upload-artifact@v4 | |
with: | |
name: artifacts-${{ matrix.os }} | |
path: ./artefacts/* | |
retention-days: 3 | |
release: | |
name: Upload Binaries to GitHub Release | |
needs: [build] | |
runs-on: ubuntu-latest | |
# upload binaries to github release if commit is tagged | |
if: github.event_name == 'push' && startsWith(github.event.ref, 'refs/tags/') | |
permissions: | |
contents: write | |
steps: | |
- uses: dev-drprasad/[email protected] | |
with: | |
repo: spatial-model-editor/sme_deps | |
keep_latest: 5 | |
env: | |
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
- uses: actions/download-artifact@v4 | |
with: | |
pattern: artifacts-* | |
merge-multiple: true | |
path: binaries | |
- name: Upload binaries to release | |
uses: svenstaro/upload-release-action@v2 | |
with: | |
repo_token: ${{ secrets.GITHUB_TOKEN }} | |
file: binaries/* | |
tag: ${{ github.ref }} | |
overwrite: true | |
file_glob: true |