mirror of
https://onedev.site.tesses.net/crosslang
synced 2026-02-08 09:05:46 +00:00
Add more architectures
This commit is contained in:
@@ -54,14 +54,30 @@ jobs:
|
|||||||
- !CommandStep
|
- !CommandStep
|
||||||
name: Build and Publish Deb Package
|
name: Build and Publish Deb Package
|
||||||
runInContainer: true
|
runInContainer: true
|
||||||
image: onedev.site.tesses.net/dependencies/debbuilder:latest
|
image: onedev.site.tesses.net/dependencies/debbuilder/jammy:latest
|
||||||
interpreter: !DefaultInterpreter
|
interpreter: !DefaultInterpreter
|
||||||
commands: |
|
commands: |
|
||||||
apt update -y
|
apt update -y
|
||||||
apt install -y tessesframework libffi-dev pkg-config
|
apt install -y tessesframework libffi-dev pkg-config tessesframework:arm64 tessesframework:armhf tessesframework:riscv64
|
||||||
cd Packaging/Linux
|
cd Packaging/Linux
|
||||||
bash build-debian-amd64.sh
|
bash build-ubuntu-jammy.sh
|
||||||
bash push-debian-amd64.sh
|
bash push-ubuntu-jammy.sh
|
||||||
|
envVars:
|
||||||
|
- name: GITEA_AUTH
|
||||||
|
value: '@secret:GITEA_AUTH@'
|
||||||
|
useTTY: true
|
||||||
|
condition: ALL_PREVIOUS_STEPS_WERE_SUCCESSFUL
|
||||||
|
- !CommandStep
|
||||||
|
name: Build and Publish Deb Package
|
||||||
|
runInContainer: true
|
||||||
|
image: onedev.site.tesses.net/dependencies/debbuilder/plucky:latest
|
||||||
|
interpreter: !DefaultInterpreter
|
||||||
|
commands: |
|
||||||
|
apt update -y
|
||||||
|
apt install -y tessesframework libffi-dev pkg-config tessesframework:arm64 tessesframework:armhf tessesframework:riscv64 tessesframework:i386
|
||||||
|
cd Packaging/Linux
|
||||||
|
bash build-ubuntu-plucky.sh
|
||||||
|
bash push-ubuntu-plucky.sh
|
||||||
envVars:
|
envVars:
|
||||||
- name: GITEA_AUTH
|
- name: GITEA_AUTH
|
||||||
value: '@secret:GITEA_AUTH@'
|
value: '@secret:GITEA_AUTH@'
|
||||||
|
|||||||
@@ -1,14 +0,0 @@
|
|||||||
#!/bin/bash
|
|
||||||
mkdir -p build
|
|
||||||
cd build
|
|
||||||
mkdir build-deb-amd64
|
|
||||||
cmake -S ../../../ -B build-deb-amd64 -DCMAKE_INSTALL_PREFIX=/usr -DCROSSLANG_FETCHCONTENT=OFF -DCROSSLANG_ENABLE_FFI=ON
|
|
||||||
cd build-deb-amd64
|
|
||||||
make -j`nproc`
|
|
||||||
make install DESTDIR=../crosslang_1.0.0_amd64
|
|
||||||
mkdir -p ../crosslang_1.0.0_amd64/DEBIAN
|
|
||||||
mkdir -p ../crosslang_1.0.0_amd64/usr/share/Tesses/CrossLang
|
|
||||||
wget -O ../crosslang_1.0.0_amd64/usr/share/Tesses/CrossLang/Tesses.CrossLang.ShellPackage-1.0.0.0-prod.crvm https://downloads.tesses.net/ShellPackage.crvm
|
|
||||||
cp ../../debian/control-amd64 ../crosslang_1.0.0_amd64/DEBIAN/control
|
|
||||||
cd ../
|
|
||||||
dpkg-deb --build crosslang_1.0.0_amd64
|
|
||||||
35
Packaging/Linux/build-ubuntu-jammy.sh
Normal file
35
Packaging/Linux/build-ubuntu-jammy.sh
Normal file
@@ -0,0 +1,35 @@
|
|||||||
|
#!/bin/bash
|
||||||
|
source ./version.sh
|
||||||
|
mkdir -p build/jammy
|
||||||
|
cd build/jammy
|
||||||
|
wget -O Tesses.CrossLang.ShellPackage-1.0.0.0-prod.crvm https://downloads.tesses.net/ShellPackage.crvm
|
||||||
|
mkdir build-amd64
|
||||||
|
cmake -S ../../../../ -B build-amd64 -DCMAKE_INSTALL_PREFIX=/usr -DCROSSLANG_FETCHCONTENT=OFF -DCROSSLANG_ENABLE_FFI=ON
|
||||||
|
cd build-amd64
|
||||||
|
make -j`nproc`
|
||||||
|
make install DESTDIR=../crosslang_$DEB_VERSION\_amd64
|
||||||
|
mkdir -p ../crosslang_$DEB_VERSION\_amd64/DEBIAN
|
||||||
|
bash ../../../make-control.sh ../crosslang_$DEB_VERSION\_amd64/DEBIAN/control amd64
|
||||||
|
cd ../
|
||||||
|
mkdir -p crosslang_$DEB_VERSION\_amd64/usr/share/Tesses/CrossLang
|
||||||
|
cp Tesses.CrossLang.ShellPackage-1.0.0.0-prod.crvm crosslang_$DEB_VERSION\_amd64/usr/share/Tesses/CrossLang/Tesses.CrossLang.ShellPackage-1.0.0.0-prod.crvm
|
||||||
|
dpkg-deb --build crosslang_$DEB_VERSION\_amd64
|
||||||
|
|
||||||
|
foreign() {
|
||||||
|
mkdir build-$1
|
||||||
|
cmake -S ../../../../ -B build-$1 -DCMAKE_INSTALL_PREFIX=/usr -DCROSSLANG_FETCHCONTENT=OFF -DCROSSLANG_ENABLE_FFI=ON -DCMAKE_TOOLCHAIN_FILE=/opt/toolchains/$1\.cmake
|
||||||
|
cd build-$1
|
||||||
|
make -j`nproc`
|
||||||
|
make install DESTDIR=../crosslang_$DEB_VERSION\_$1
|
||||||
|
mkdir -p ../crosslang_$DEB_VERSION\_$1/DEBIAN
|
||||||
|
bash ../../../make-control.sh ../crosslang_$DEB_VERSION\_$1\/DEBIAN/control $1
|
||||||
|
cd ../
|
||||||
|
mkdir -p crosslang_$DEB_VERSION\_$1\/usr/share/Tesses/CrossLang
|
||||||
|
cp Tesses.CrossLang.ShellPackage-1.0.0.0-prod.crvm crosslang_$DEB_VERSION\_$1\/usr/share/Tesses/CrossLang/Tesses.CrossLang.ShellPackage-1.0.0.0-prod.crvm
|
||||||
|
dpkg-deb --build crosslang_$DEB_VERSION\_$1
|
||||||
|
}
|
||||||
|
|
||||||
|
foreign arm64
|
||||||
|
foreign armhf
|
||||||
|
foreign riscv64
|
||||||
|
|
||||||
35
Packaging/Linux/build-ubuntu-plucky.sh
Normal file
35
Packaging/Linux/build-ubuntu-plucky.sh
Normal file
@@ -0,0 +1,35 @@
|
|||||||
|
#!/bin/bash
|
||||||
|
source ./version.sh
|
||||||
|
mkdir -p build/plucky
|
||||||
|
cd build/plucky
|
||||||
|
wget -O Tesses.CrossLang.ShellPackage-1.0.0.0-prod.crvm https://downloads.tesses.net/ShellPackage.crvm
|
||||||
|
mkdir build-amd64
|
||||||
|
cmake -S ../../../../ -B build-amd64 -DCMAKE_INSTALL_PREFIX=/usr -DCROSSLANG_FETCHCONTENT=OFF -DCROSSLANG_ENABLE_FFI=ON
|
||||||
|
cd build-amd64
|
||||||
|
make -j`nproc`
|
||||||
|
make install DESTDIR=../crosslang_$DEB_VERSION\_amd64
|
||||||
|
mkdir -p ../crosslang_$DEB_VERSION\_amd64/DEBIAN
|
||||||
|
bash ../../../make-control.sh ../crosslang_$DEB_VERSION\_amd64/DEBIAN/control amd64
|
||||||
|
cd ../
|
||||||
|
mkdir -p crosslang_$DEB_VERSION\_amd64/usr/share/Tesses/CrossLang
|
||||||
|
cp Tesses.CrossLang.ShellPackage-1.0.0.0-prod.crvm crosslang_$DEB_VERSION\_amd64/usr/share/Tesses/CrossLang/Tesses.CrossLang.ShellPackage-1.0.0.0-prod.crvm
|
||||||
|
dpkg-deb --build crosslang_$DEB_VERSION\_amd64
|
||||||
|
|
||||||
|
foreign() {
|
||||||
|
mkdir build-$1
|
||||||
|
cmake -S ../../../../ -B build-$1 -DCMAKE_INSTALL_PREFIX=/usr -DCROSSLANG_FETCHCONTENT=OFF -DCROSSLANG_ENABLE_FFI=ON -DCMAKE_TOOLCHAIN_FILE=/opt/toolchains/$1\.cmake
|
||||||
|
cd build-$1
|
||||||
|
make -j`nproc`
|
||||||
|
make install DESTDIR=../crosslang_$DEB_VERSION\_$1
|
||||||
|
mkdir -p ../crosslang_$DEB_VERSION\_$1/DEBIAN
|
||||||
|
bash ../../../make-control.sh ../crosslang_$DEB_VERSION\_$1\/DEBIAN/control $1
|
||||||
|
cd ../
|
||||||
|
mkdir -p crosslang_$DEB_VERSION\_$1\/usr/share/Tesses/CrossLang
|
||||||
|
cp Tesses.CrossLang.ShellPackage-1.0.0.0-prod.crvm crosslang_$DEB_VERSION\_$1\/usr/share/Tesses/CrossLang/Tesses.CrossLang.ShellPackage-1.0.0.0-prod.crvm
|
||||||
|
dpkg-deb --build crosslang_$DEB_VERSION\_$1
|
||||||
|
}
|
||||||
|
|
||||||
|
foreign arm64
|
||||||
|
foreign armhf
|
||||||
|
foreign riscv64
|
||||||
|
foreign i386
|
||||||
@@ -1,8 +0,0 @@
|
|||||||
Package: crosslang
|
|
||||||
Version: 1.0.0
|
|
||||||
Architecture: amd64
|
|
||||||
Essential: no
|
|
||||||
Priority: optional
|
|
||||||
Depends: tessesframework, libffi-dev
|
|
||||||
Maintainer: Mike Nolan
|
|
||||||
Description: A programming language
|
|
||||||
8
Packaging/Linux/make-control.sh
Normal file
8
Packaging/Linux/make-control.sh
Normal file
@@ -0,0 +1,8 @@
|
|||||||
|
echo "Package: crosslang" > "$1"
|
||||||
|
echo "Version: $DEB_VERSION" >> "$1"
|
||||||
|
echo "Architecture: $2" >> "$1"
|
||||||
|
echo "Essential: no" >> "$1"
|
||||||
|
echo "Priority: optional" >> "$1"
|
||||||
|
echo "Depends: tessesframework, libffi-dev" >> "$1"
|
||||||
|
echo "Maintainer: Mike Nolan" >> "$1"
|
||||||
|
echo "Description: A programming language" >> "$1"
|
||||||
@@ -1,6 +0,0 @@
|
|||||||
#!/bin/bash
|
|
||||||
curl --user tesses50:$GITEA_AUTH -X DELETE \
|
|
||||||
https://git.tesseslanguage.com/api/packages/tesses50/debian/pool/jammy/main/crosslang/1.0.0/amd64
|
|
||||||
curl --user tesses50:$GITEA_AUTH \
|
|
||||||
--upload-file build/crosslang_1.0.0_amd64.deb \
|
|
||||||
https://git.tesseslanguage.com/api/packages/tesses50/debian/pool/jammy/main/upload
|
|
||||||
14
Packaging/Linux/push-ubuntu-jammy.sh
Normal file
14
Packaging/Linux/push-ubuntu-jammy.sh
Normal file
@@ -0,0 +1,14 @@
|
|||||||
|
#!/bin/bash
|
||||||
|
source ./version.sh
|
||||||
|
upload() {
|
||||||
|
curl --user tesses50:$GITEA_AUTH -X DELETE \
|
||||||
|
https://git.tesseslanguage.com/api/packages/tesses50/debian/pool/jammy/main/crosslang/$DEB_VERSION/$1
|
||||||
|
curl --user tesses50:$GITEA_AUTH \
|
||||||
|
--upload-file build/jammy/crosslang/$DEB_VERSION\_$1\.deb \
|
||||||
|
https://git.tesseslanguage.com/api/packages/tesses50/debian/pool/jammy/main/upload
|
||||||
|
}
|
||||||
|
upload amd64
|
||||||
|
upload arm64
|
||||||
|
upload armhf
|
||||||
|
upload riscv64
|
||||||
|
|
||||||
14
Packaging/Linux/push-ubuntu-plucky.sh
Normal file
14
Packaging/Linux/push-ubuntu-plucky.sh
Normal file
@@ -0,0 +1,14 @@
|
|||||||
|
#!/bin/bash
|
||||||
|
source ./version.sh
|
||||||
|
upload() {
|
||||||
|
curl --user tesses50:$GITEA_AUTH -X DELETE \
|
||||||
|
https://git.tesseslanguage.com/api/packages/tesses50/debian/pool/plucky/main/crosslang/$DEB_VERSION/$1
|
||||||
|
curl --user tesses50:$GITEA_AUTH \
|
||||||
|
--upload-file build/plucky/crosslang/$DEB_VERSION\_$1\.deb \
|
||||||
|
https://git.tesseslanguage.com/api/packages/tesses50/debian/pool/plucky/main/upload
|
||||||
|
}
|
||||||
|
upload amd64
|
||||||
|
upload arm64
|
||||||
|
upload armhf
|
||||||
|
upload riscv64
|
||||||
|
upload i386
|
||||||
1
Packaging/Linux/version.sh
Normal file
1
Packaging/Linux/version.sh
Normal file
@@ -0,0 +1 @@
|
|||||||
|
export DEB_VERSION=1.0.0
|
||||||
BIN
crosslang.png
BIN
crosslang.png
Binary file not shown.
|
Before Width: | Height: | Size: 1.0 KiB After Width: | Height: | Size: 4.7 KiB |
4
logo.svg
4
logo.svg
@@ -1,4 +1,4 @@
|
|||||||
<svg xmlns='http://www.w3.org/2000/svg' xmlns:xlink='http://www.w3.org/1999/xlink' aria-hidden='true' role='img' class='iconify iconify--logos' width="100" height="100">
|
<svg xmlns='http://www.w3.org/2000/svg' xmlns:xlink='http://www.w3.org/1999/xlink' aria-hidden='true' role='img' class='iconify iconify--logos' width="100" height="100">
|
||||||
<polygon points="50,0,100,25,100,75,50,100,0,75,0,25" style="fill:orange;stroke:black;stroke-width:3" />
|
<polygon points="50,5,95,30,95,70,50,95,5,70,5,30" style="fill:orange;stroke:black;stroke-width:3" />
|
||||||
<polygon points="45,20,55,20,55,35,80,35,80,45,55,45,55,85,45,85,45,45,20,45,20,35,45,35" style="fill:white;stroke:black;stroke-width:3"/>
|
<polygon points="45,20,55,20,55,35,80,35,80,45,55,45,55,85,45,85,45,45,20,45,20,35,45,35" style="fill:white;stroke:black;stroke-width:3"/>
|
||||||
</svg>
|
</svg>
|
||||||
|
|||||||
|
Before Width: | Height: | Size: 428 B After Width: | Height: | Size: 426 B |
BIN
winicon.ico
Executable file → Normal file
BIN
winicon.ico
Executable file → Normal file
Binary file not shown.
|
Before Width: | Height: | Size: 45 KiB After Width: | Height: | Size: 66 KiB |
Reference in New Issue
Block a user