Skip to content

Commit

Permalink
fix docker build to use NPM
Browse files Browse the repository at this point in the history
  • Loading branch information
nyurik committed Jul 12, 2024
1 parent b3bba2b commit 58862d3
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 1 deletion.
3 changes: 2 additions & 1 deletion .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -144,8 +144,9 @@ jobs:
echo "Building $target"
export "CARGO_TARGET_$(echo $target | tr 'a-z-' 'A-Z_')_RUSTFLAGS"='-C strip=debuginfo'
cross build --release --target $target --package mbtiles
cross build --release --target $target --package martin
cross build --release --target $target --package martin-cp
cross build --release --target $target --package mbtiles
mkdir -p target_releases/$target
mv target/$target/release/martin target_releases/$target
Expand Down
9 changes: 9 additions & 0 deletions Cross.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
[build]
pre-build = [
# install nodejs and npm to compile static web resources
# note that architecture could be the same as the container, not $CROSS_DEB_ARCH
"curl -fsSL https://deb.nodesource.com/setup_22.x -o nodesource_setup.sh",
"bash nodesource_setup.sh",
"apt-get install -y nodejs",
"node -v",
]

0 comments on commit 58862d3

Please sign in to comment.