Skip to content

Commit

Permalink
ci: enable experimental features on test refs
Browse files Browse the repository at this point in the history
Signed-off-by: Yaroslav Bolyukin <[email protected]>
  • Loading branch information
CertainLach committed Apr 23, 2022
1 parent fecf39e commit cf77cb3
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -106,6 +106,10 @@ jobs:
- name: Checkout
uses: actions/checkout@v2

- name: Add experimental flags
if: ${{ endsWith(github.ref, '-test' )}}
run: echo 'EXPERIMENTAL_FLAGS=--features=experimental' >> $GITHUB_ENV

- name: Linux x86 cross compiler
if: ${{ matrix.target == 'i686-unknown-linux-gnu' }}
run: sudo apt install gcc-multilib
Expand All @@ -128,7 +132,7 @@ jobs:
- name: Run ARM build
if: ${{ startsWith(matrix.target, 'aarch64-unknown-linux-') }}
shell: bash
run: cross build --bin=jrsonnet --release --target ${{ matrix.target }}
run: cross build --bin=jrsonnet --release --target ${{ matrix.target }} ${{ env.EXPERIMENTAL_FLAGS }}

- name: Run ARM strip
if: ${{ startsWith(matrix.target, 'aarch64-unknown-linux-') }}
Expand All @@ -140,7 +144,7 @@ jobs:
uses: actions-rs/cargo@v1
with:
command: build
args: --bin=jrsonnet --release --target ${{ matrix.target }}
args: --bin=jrsonnet --release --target ${{ matrix.target }} ${{ env.EXPERIMENTAL_FLAGS }}

- name: Run strip
if: ${{ !startsWith(matrix.target, 'aarch64-unknown-linux-') }}
Expand Down

0 comments on commit cf77cb3

Please sign in to comment.