-
Notifications
You must be signed in to change notification settings - Fork 0
56 lines (51 loc) · 1.69 KB
/
build_standalone.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
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