-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathpkg.bash
More file actions
31 lines (26 loc) · 729 Bytes
/
pkg.bash
File metadata and controls
31 lines (26 loc) · 729 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
#!/bin/bash
set -e -o pipefail
rm ./CMakeLists.txt
cleanup() {
cp -f ./cross_compile/x86/CMakeLists.txt ./CMakeLists.txt
}
trap cleanup SIGINT SIGTERM EXIT
cp ./cross_compile/x86/CMakeLists.txt ./CMakeLists.txt
export arch="linux-64"
# crosscompile doesn't work
for distro in jazzy humble kilted; do
rm ./pixi.toml
ln -s ./pixi-$distro.toml ./pixi.toml
pixi build \
--output-dir ./$arch \
--target-platform $arch
done
cp -f ./cross_compile/aarch64/CMakeLists.txt ./CMakeLists.txt
export arch="linux-aarch64"
for distro in jazzy humble kilted; do
rm ./pixi.toml
ln -s ./pixi-$distro.toml ./pixi.toml
pixi build \
--output-dir ./$arch \
--target-platform $arch
done