# How to set the julia optimization level for each run on Github Actions?

**URL:** <https://discourse.julialang.org/t/how-to-set-the-julia-optimization-level-for-each-run-on-github-actions/92212>\
**Category:** General Usage\
**Tags:** github, ci, github-actions\
**Created:** [December 28, 2022, 8:00am UTC](https://discourse.julialang.org/t/how-to-set-the-julia-optimization-level-for-each-run-on-github-actions/92212 "2022-12-28T08:00:31Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![jishnub](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/jishnub/32/33620_2.png) [@jishnub](https://discourse.julialang.org/u/jishnub)\
**Post date:** [December 28, 2022, 8:00am UTC](https://discourse.julialang.org/t/how-to-set-the-julia-optimization-level-for-each-run-on-github-actions/92212/1 "2022-12-28T08:00:31Z")

</div>

I have [this script](https://github.com/JuliaApproximation/ApproxFunBase.jl/blob/master/.github/workflows/downstream.yml), where I have the following matrix:

```julia
matrix:
        julia-version: ['1', '1.6', '~1.9.0-0']

```

and the following command to launch julia

```julia
        shell: julia --color=yes --project=downstream {0}

```

I want to specify an optimization level `-O0` for the runs on julia versions `v1` and `v1.9`, but not for `v1.6`. I am not that familiar with GitHub actions, and I was wondering if someone could suggest a way to achieve this?
