Merge branch 'px/sysimage' of https://github.com/pedromxavier/QUBO-no… #7
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: Create Sysimage | |
on: | |
workflow_dispatch: | |
push: | |
branches: '**' | |
jobs: | |
benchmark: | |
if: ${{ !(github.event_name == 'push') || contains(github.event.head_commit.message, '[sysimage]') }} | |
name: Julia ${{ matrix.julia-version }}, @ ${{ matrix.os }}/${{ matrix.arch }}/${{ github.event_name }} | |
runs-on: ${{ matrix.os }} | |
strategy: | |
fail-fast: false | |
matrix: | |
include: | |
- julia-version: '1.9.1' | |
os: ubuntu-22.04 | |
arch: x64 | |
steps: | |
- uses: actions/checkout@v3 | |
- uses: julia-actions/setup-julia@v1 | |
with: | |
version: ${{ matrix.julia-version }} | |
arch: ${{ matrix.arch }} | |
- name: Create Sysimage | |
run: | | |
julia --project=sysimage ./scripts/create_sysimage.jl | |
- name: Upload Sysimage | |
env: | |
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} # For authentication with GitHub Actions token | |
run: | | |
git config --global user.name "github-actions[bot]" | |
git config --global user.email "41898282+github-actions[bot]@users.noreply.github.com" | |
git lfs track ./sysimage/sysimage.so | |
git add ./sysimage/sysimage.so | |
git commit -m "Generate Sysimage [actions]" | |
git push |