Skip to content

Commit cf77cb3

Browse files
committed
ci: enable experimental features on test refs
Signed-off-by: Yaroslav Bolyukin <[email protected]>
1 parent fecf39e commit cf77cb3

File tree

1 file changed

+6
-2
lines changed

1 file changed

+6
-2
lines changed

.github/workflows/release.yml

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -106,6 +106,10 @@ jobs:
106106
- name: Checkout
107107
uses: actions/checkout@v2
108108

109+
- name: Add experimental flags
110+
if: ${{ endsWith(github.ref, '-test' )}}
111+
run: echo 'EXPERIMENTAL_FLAGS=--features=experimental' >> $GITHUB_ENV
112+
109113
- name: Linux x86 cross compiler
110114
if: ${{ matrix.target == 'i686-unknown-linux-gnu' }}
111115
run: sudo apt install gcc-multilib
@@ -128,7 +132,7 @@ jobs:
128132
- name: Run ARM build
129133
if: ${{ startsWith(matrix.target, 'aarch64-unknown-linux-') }}
130134
shell: bash
131-
run: cross build --bin=jrsonnet --release --target ${{ matrix.target }}
135+
run: cross build --bin=jrsonnet --release --target ${{ matrix.target }} ${{ env.EXPERIMENTAL_FLAGS }}
132136

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

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

0 commit comments

Comments
 (0)