Skip to content

Commit a31d96a

Browse files
committed
Fixes for binary publish CI
1 parent 4baebf9 commit a31d96a

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

.github/workflows/publish.yml

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -22,18 +22,21 @@ jobs:
2222
case "$PREFIX" in
2323
"sdf")
2424
CRATE_NAME="sdf_glyph_renderer"
25+
FLAGS="--features freetype"
2526
;;
2627
"tools")
2728
CRATE_NAME="pbf_font_tools"
29+
FLAGS="--features freetype"
2830
;;
2931
"cli")
3032
CRATE_NAME="build_pbf_glyphs"
33+
FLAGS=""
3134
;;
3235
*)
3336
echo "Invalid prefix in tag: $PREFIX"
3437
exit 1
3538
esac
36-
cargo publish --features freetype -p $CRATE_NAME
39+
cargo publish $FLAGS -p $CRATE_NAME
3740
env:
3841
CARGO_REGISTRY_TOKEN: ${{ secrets.CARGO_REGISTRY_TOKEN }}
3942

@@ -61,7 +64,7 @@ jobs:
6164
uses: actions-rs/cargo@v1
6265
with:
6366
command: build
64-
args: --all-features --release
67+
args: --release
6568
- name: Push Artifacts
6669
run: |
6770
mv target/release/build_pbf_glyphs target/release/build_pbf_glyphs.${{ matrix.target }}

0 commit comments

Comments
 (0)