git.delta.rocks / jrsonnet / refs/commits / 070336fbb243

difftreelog

ci fix arm build

Yaroslav Bolyukin2021-07-04parent: #ec3780b.patch.diff
in: master

1 file changed

modified.github/workflows/release.ymldiffbeforeafterboth
126 with:126 with:
127 platform: x86127 platform: x86
128
129 - name: Musl gcc
130 if: ${{ endsWith(matrix.target, '-musl') }}
131 run: sudo apt install musl musl-tools
128132
129 - name: ARM cross compiler133 - name: ARM cross compiler
130 if: ${{ matrix.target == 'aarch64-unknown-linux-gnu' }}134 if: ${{ startsWith(matrix.target, 'aarch64-unknown-linux-') }}
131 uses: actions-rs/cargo@v1135 uses: actions-rs/cargo@v1
132 with:136 with:
133 command: install137 command: install
134 args: cross138 args: cross
135139
136 - name: ARM gcc140 - name: ARM gcc
137 if: ${{ matrix.target == 'aarch64-unknown-linux-gnu' }}141 if: ${{ startsWith(matrix.target, 'aarch64-unknown-linux-') }}
138 run: sudo apt install gcc-aarch64-linux-gnu142 run: sudo apt install gcc-aarch64-linux-gnu
139143
140 - name: Run ARM build144 - name: Run ARM build
141 if: ${{ matrix.target == 'aarch64-unknown-linux-gnu' }}145 if: ${{ startsWith(matrix.target, 'aarch64-unknown-linux-') }}
142 shell: bash146 shell: bash
143 run: cross build --bin=jrsonnet --release --target ${{ matrix.target }}147 run: cross build --bin=jrsonnet --release --target ${{ matrix.target }}
144148
145 - name: Run ARM strip149 - name: Run ARM strip
146 if: ${{ matrix.target == 'aarch64-unknown-linux-gnu' }}150 if: ${{ startsWith(matrix.target, 'aarch64-unknown-linux-') }}
147 shell: bash151 shell: bash
148 run: aarch64-linux-gnu-strip target/${{ matrix.target }}/release/${{ matrix.bin }}152 run: aarch64-linux-gnu-strip target/${{ matrix.target }}/release/${{ matrix.bin }}
149153
150 - name: Run build154 - name: Run build
151 if: ${{ matrix.target != 'aarch64-unknown-linux-gnu' }}155 if: ${{ !startsWith(matrix.target, 'aarch64-unknown-linux-') }}
152 uses: actions-rs/cargo@v1156 uses: actions-rs/cargo@v1
153 with:157 with:
154 command: build158 command: build
155 args: --bin=jrsonnet --release --target ${{ matrix.target }}159 args: --bin=jrsonnet --release --target ${{ matrix.target }}
156160
157 - name: Run strip161 - name: Run strip
158 if: ${{ matrix.target != 'aarch64-unknown-linux-gnu' }}162 if: ${{ !startsWith(matrix.target, 'aarch64-unknown-linux-') }}
159 shell: bash163 shell: bash
160 run: strip target/${{ matrix.target }}/release/${{ matrix.bin }}164 run: strip target/${{ matrix.target }}/release/${{ matrix.bin }}
161165