Skip to content

speed improvements #118

speed improvements

speed improvements #118

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 artemis version"
run: echo "artemis=$(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 artemis name"
run: echo "artemis_name=ARTEMIS_v${{ env.artemis }}-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.artemis_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: "ARTEMIS"
files: |
./*.tar.gz