ci: major overhaul
- Simplify some workflow steps and auxiliary scripts
- Build library using cmake when not cross-compiling
- Try to fetch fixtures from cache first
- Use `actions-rust-lang/setup-rust-toolchain`
(cherry picked from commit e8e56255bd)
This commit is contained in:
parent
8d466ead30
commit
4e870b9207
11 changed files with 268 additions and 254 deletions
20
.github/scripts/make.sh
vendored
20
.github/scripts/make.sh
vendored
|
|
@ -1,19 +1,9 @@
|
|||
#!/bin/bash
|
||||
#!/bin/bash -eu
|
||||
|
||||
# set -x
|
||||
set -e
|
||||
tree_sitter="$ROOT"/target/"$TARGET"/release/tree-sitter
|
||||
|
||||
if [ "$BUILD_CMD" == "cross" ]; then
|
||||
if [ -z "$CC" ]; then
|
||||
echo "make.sh: CC is not set" >&2
|
||||
exit 111
|
||||
fi
|
||||
if [ -z "$AR" ]; then
|
||||
echo "make.sh: AR is not set" >&2
|
||||
exit 111
|
||||
fi
|
||||
|
||||
cross.sh make CC=$CC AR=$AR "$@"
|
||||
if [[ $BUILD_CMD == cross ]]; then
|
||||
cross.sh make CC="$CC" AR="$AR" "$@"
|
||||
else
|
||||
make "$@"
|
||||
exec make "$@"
|
||||
fi
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue