updating the readme #124
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 | |
on: | |
push: | |
branches: | |
- "master" | |
workflow_dispatch: | |
jobs: | |
build_release: | |
runs-on: ${{ matrix.os }} | |
strategy: | |
matrix: | |
julia-version: ['1.8.5'] | |
julia-arch: [x64] | |
os: [ubuntu-latest] | |
steps: | |
- uses: actions/checkout@v4 | |
- uses: julia-actions/setup-julia@v1 | |
with: | |
version: ${{ matrix.julia-version }} | |
- uses: julia-actions/julia-buildpkg@v1 | |
- name: "Setup chopoff version" | |
run: echo "chopoff=$(julia --project=. -e 'using Pkg; print(Pkg.TOML.parse(read("./Project.toml", String))["version"]);')" >> $GITHUB_ENV | |
- name: "Setup J version" | |
run: echo "jver=$(julia -e 'print(VERSION)')" >> $GITHUB_ENV | |
- name: "Setup chopoff name" | |
run: echo "chopoff_name=CHOPOFF_v${{ env.chopoff }}-julia_v${{ env.jver }}_${{ matrix.julia-arch }}-${{ matrix.os }}" >> $GITHUB_ENV | |
- name: "Build" | |
run: ./build_standalone.sh --noprecompile | |
- uses: actions/upload-artifact@v3 | |
with: | |
name: ${{ env.chopoff_name }} | |
path: build/ | |
retention-days: 1 | |
release: | |
name: "Release" | |
needs: build_release | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/download-artifact@v3 | |
- name: Display structure of downloaded files | |
run: ls -R | |
- name: tar.gz | |
run: find . -type d -maxdepth 1 -mindepth 1 -execdir tar -zcvf {}.tar.gz {} --xform='s!^\./!!' \; | |
- uses: "marvinpinto/action-automatic-releases@latest" | |
with: | |
repo_token: "${{ secrets.GITHUB_TOKEN }}" | |
automatic_release_tag: "latest" | |
prerelease: false | |
title: "CHOPOFF" | |
files: | | |
./*.tar.gz |