Skip to content

Update executable.yml #70

Update executable.yml

Update executable.yml #70

Workflow file for this run

name: Executable
on:
push:
tags:
- 'v*'
jobs:
build:
name: Build
runs-on: ${{ matrix.os }}
strategy:
matrix:
julia-version:
- '1.8'
os:
- windows-latest
- macos-latest
- ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v2
- name: Build project # This would actually build your project, using zip for an example artifact
uses: julia-actions/setup-julia@v1
with:
version: ${{ matrix.julia-version }}
- run: julia --project=@. -e "using Pkg; Pkg.instantiate()"
- run: julia --project=@. deps/make_binary.jl
# There seems to be something off about this post-compilation with respect to a SSL.jl package and a certificate.
- name: Post-compilation script
run: vchdfe/bin/vchdfe --help
# - name: Remove the files from the precompilation
# run: rm vchdfe/bin/csv_file.csv
- name: Copy the test file into the bin folder
run: cp test.csv vchdfe/bin/test.csv
- name: Get the version
id: get_version
run: echo ::set-output name=VERSION::${GITHUB_REF#refs/tags/}
- name: Compress binaries
run: tar -cvzf vchdfe-${{ steps.get_version.outputs.VERSION }}-${{ matrix.os }}.tar.gz vchdfe
- name: Upload binaries to release
uses: svenstaro/upload-release-action@v2
with:
repo_token: ${{ secrets.GITHUB_TOKEN }}
file: vchdfe-${{ steps.get_version.outputs.VERSION }}-${{ matrix.os }}.tar.gz
tag: ${{ github.ref }}
overwrite: true