windows11 arm #2818
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: JE | |
on: | |
push: | |
branches: [ master ] | |
# trigger workflow on file change | |
#on: | |
# push: | |
# paths: | |
# - 'version.txt' | |
# if: ${{ false }} | |
jobs: | |
# linux ---------------------------------------------------------------- | |
jelinux: | |
name: JE (Linux) | |
runs-on: ubuntu-22.04 | |
steps: | |
- name: Checkout Git repository | |
uses: actions/checkout@v4 | |
- name: Setup SDE binaries | |
uses: petarpetrovt/[email protected] | |
with: | |
sdeVersion: 9.27.0 # possible values: 9.27.0 (default), 9.24.0, 9.14.0, 9.7.0, 9.0.0, 8.69.1 | |
- name: Setup Environment (Linux) | |
run: | | |
script/install-lnx.sh | |
sudo mkdir -p /usr/lib/x86_64-linux-gnu | |
sudo mkdir -p /usr/lib/i386-linux-gnu | |
sudo cp openmp/obj/linux/x86_64/libomp.so.5 /usr/lib/x86_64-linux-gnu/libomp.so.5 | |
sudo cp openmp/obj/linux/i386/libomp.so.5 /usr/lib/i386-linux-gnu/libomp.so.5 | |
- name: Commit | |
run: script/commit.sh ${{ github.sha }} ${{ github.actor }} | |
- name: Build JE (Linux) | |
env: | |
CC: clang | |
USE_SLEEF: 1 | |
USE_OPENMP: 0 | |
run: | | |
echo $SDE_PATH | |
$SDE_PATH/sde -help || true | |
script/buildga.sh linux || exit 1 | |
- name: Test JE (Linux) | |
run: | | |
script/testga.sh linux || exit 1 | |
cd j64 | |
strip -S jconsole | |
strip -S libj.so | |
strip -S libjavx2.so || true | |
strip -S libjavx512.so || true | |
strip -S libtsdll.so | |
strip -S jamalgam || true | |
strip -S libgmp.so | |
cd - | |
ls -l j64 | |
zip -r l64.zip j64 | |
- name: Release JE (Linux) | |
uses: ncipollo/release-action@v1 | |
with: | |
tag: build | |
artifacts: "l64.zip,commit.txt,version.txt" | |
token: ${{ secrets.GITHUB_TOKEN }} | |
allowUpdates: true | |
replacesArtifacts: true | |
- name: Copy Test (Linux) | |
uses: actions/upload-artifact@v4 | |
with: | |
name: dist | |
path: testlinux.txt | |
overwrite: true | |
# linux gcc ------------------------------------------------------------ | |
jelinux-gcc: | |
name: JE (Linux gcc) | |
runs-on: ubuntu-22.04 | |
steps: | |
- name: Checkout Git repository | |
uses: actions/checkout@v4 | |
- name: Setup SDE binaries | |
uses: petarpetrovt/[email protected] | |
with: | |
sdeVersion: 9.27.0 # possible values: 9.27.0 (default), 9.24.0, 9.14.0, 9.7.0, 9.0.0, 8.69.1 | |
- name: Setup Environment (Linux gcc) | |
run: | | |
script/install-lnx.sh | |
sudo mkdir -p /usr/lib/x86_64-linux-gnu | |
sudo mkdir -p /usr/lib/i386-linux-gnu | |
sudo cp openmp/obj/linux/x86_64/libomp.so.5 /usr/lib/x86_64-linux-gnu/libomp.so.5 | |
sudo cp openmp/obj/linux/i386/libomp.so.5 /usr/lib/i386-linux-gnu/libomp.so.5 | |
- name: Build JE (Linux gcc) | |
env: | |
CC: gcc | |
USE_SLEEF: 1 | |
USE_OPENMP: 0 | |
run: | | |
echo $SDE_PATH | |
$SDE_PATH/sde -help || true | |
script/buildga.sh linux || exit 1 | |
- name: Test JE (Linux gcc) | |
run: | | |
script/testga.sh linux || exit 1 | |
mv testlinux.txt testlinuxgcc.txt | |
cd j64 | |
strip -S jconsole | |
strip -S libj.so | |
strip -S libjavx2.so || true | |
strip -S libjavx512.so || true | |
strip -S libtsdll.so | |
strip -S jamalgam || true | |
strip -S libgmp.so | |
cd - | |
ls -l j64 | |
zip -r lgcc64.zip j64 | |
- name: Release JE (Linux gcc) | |
uses: ncipollo/release-action@v1 | |
with: | |
tag: build | |
artifacts: "lgcc64.zip" | |
token: ${{ secrets.GITHUB_TOKEN }} | |
allowUpdates: true | |
replacesArtifacts: true | |
- name: Copy Test (Linux gcc) | |
uses: actions/upload-artifact@v4 | |
with: | |
name: dist | |
path: testlinuxgcc.txt | |
overwrite: true | |
# linux debug ---------------------------------------------------------- | |
jelinuxd: | |
name: JE (Linux debug) | |
runs-on: ubuntu-22.04 | |
steps: | |
- name: Checkout Git repository | |
uses: actions/checkout@v4 | |
- name: Setup SDE binaries | |
uses: petarpetrovt/[email protected] | |
with: | |
sdeVersion: 9.27.0 # possible values: 9.27.0 (default), 9.24.0, 9.14.0, 9.7.0, 9.0.0, 8.69.1 | |
- name: Setup Environment (Linux debug) | |
run: | | |
script/install-lnx.sh | |
sudo mkdir -p /usr/lib/x86_64-linux-gnu | |
sudo mkdir -p /usr/lib/i386-linux-gnu | |
sudo cp openmp/obj/linux/x86_64/libomp.so.5 /usr/lib/x86_64-linux-gnu/libomp.so.5 | |
sudo cp openmp/obj/linux/i386/libomp.so.5 /usr/lib/i386-linux-gnu/libomp.so.5 | |
- name: Build JE (Linux debug) | |
env: | |
CC: clang | |
USE_SLEEF: 1 | |
USE_OPENMP: 0 | |
_DEBUG: 3 | |
run: | | |
echo $SDE_PATH | |
$SDE_PATH/sde -help || true | |
script/buildga.sh linux || exit 1 | |
- name: Test JE (Linux debug) | |
env: | |
_DEBUG: 3 | |
run: | | |
script/testga.sh linux || exit 1 | |
ls -l j64 | |
zip -r l64d.zip j64 | |
- name: Release JE (Linux debug) | |
uses: ncipollo/release-action@v1 | |
with: | |
tag: build | |
artifacts: "l64d.zip" | |
token: ${{ secrets.GITHUB_TOKEN }} | |
allowUpdates: true | |
replacesArtifacts: true | |
- name: Copy Test (Linux debug) | |
uses: actions/upload-artifact@v4 | |
with: | |
name: dist | |
path: testlinuxd.txt | |
overwrite: true | |
# macOS ---------------------------------------------------------------- | |
jemacos: | |
name: JE (macOS) | |
runs-on: macos-13 | |
steps: | |
- name: Checkout Git repository | |
uses: actions/checkout@v4 | |
- name: Setup Environment (macOS) | |
run: | | |
bash script/install-mac.sh | |
- name: Build JE (macOS) | |
env: | |
CC: clang | |
USE_SLEEF: 1 | |
USE_OPENMP: 0 | |
run: | | |
script/buildga.sh darwin || exit 1 | |
- name: Test JE (macOS) | |
run: | | |
script/testga.sh darwin || exit 1 | |
rm -rf j64/jconsole.dSYM | |
rm -rf j64/libj.dylib.dSYM | |
rm -rf j64/libjavx2.dylib.dSYM | |
rm -rf j64/libjavx512.dylib.dSYM | |
rm -rf j64/libtsdll.dylib.dSYM | |
rm -rf j64/jamalgam.dSYM | |
cd j64 | |
strip -S jconsole | |
strip -S libj.dylib | |
strip -S libjavx2.dylib || true | |
strip -S libjavx512.dylib || true | |
strip -S libtsdll.dylib | |
strip -S jamalgam || true | |
cd - | |
ls -l j64 | |
zip -r m64.zip j64 | |
- name: Release JE (macOS) | |
uses: ncipollo/release-action@v1 | |
with: | |
tag: build | |
artifacts: "m64.zip" | |
token: ${{ secrets.GITHUB_TOKEN }} | |
allowUpdates: true | |
replacesArtifacts: true | |
- name: Copy Test (macOS) | |
uses: actions/upload-artifact@v4 | |
with: | |
name: dist | |
path: testdarwin.txt | |
overwrite: true | |
# macOS arm64 ---------------------------------------------------------- | |
jemacosarm: | |
name: JE (macOS arm64) | |
runs-on: macos-14 | |
steps: | |
- name: Checkout Git repository | |
uses: actions/checkout@v4 | |
- name: Setup Environment (macOS arm64) | |
run: | | |
bash script/install-mac.sh | |
- name: Build JE (macOS arm64) | |
env: | |
CC: clang | |
USE_SLEEF: 1 | |
USE_OPENMP: 0 | |
run: | | |
script/buildga.sh darwin || exit 1 | |
- name: Test JE (macOS arm64) | |
run: | | |
script/testga.sh darwin || exit 1 | |
rm -rf j64/jconsole.dSYM | |
rm -rf j64/libj.dylib.dSYM | |
rm -rf j64/libjavx2.dylib.dSYM | |
rm -rf j64/libjavx512.dylib.dSYM | |
rm -rf j64/libtsdll.dylib.dSYM | |
rm -rf j64/jamalgam.dSYM | |
cd j64 | |
strip -S jconsole | |
strip -S libj.dylib | |
strip -S libjavx2.dylib || true | |
strip -S libjavx512.dylib || true | |
strip -S libtsdll.dylib | |
strip -S jamalgam || true | |
cd - | |
ls -l j64 | |
zip -r m64arm.zip j64 | |
- name: Release JE (macOS arm64) | |
uses: ncipollo/release-action@v1 | |
with: | |
tag: build | |
artifacts: "m64arm.zip" | |
token: ${{ secrets.GITHUB_TOKEN }} | |
allowUpdates: true | |
replacesArtifacts: true | |
- name: Copy Test (macOS arm64) | |
uses: actions/upload-artifact@v4 | |
with: | |
name: dist | |
path: testdarwinarm.txt | |
overwrite: true | |
# macOS debug ---------------------------------------------------------- | |
jemacosd: | |
name: JE (macOS debug) | |
runs-on: macos-13 | |
steps: | |
- name: Checkout Git repository | |
uses: actions/checkout@v4 | |
- name: Setup Environment (macOS debug) | |
run: | | |
bash script/install-mac.sh | |
- name: Build JE (macOS debug) | |
env: | |
CC: clang | |
USE_SLEEF: 1 | |
USE_OPENMP: 0 | |
_DEBUG: 3 | |
run: | | |
script/buildga.sh darwin || exit 1 | |
- name: Test JE (macOS debug) | |
env: | |
_DEBUG: 3 | |
run: | | |
rm -rf j64/jconsole.dSYM | |
rm -rf j64/libj.dylib.dSYM | |
rm -rf j64/libjavx2.dylib.dSYM | |
rm -rf j64/libjavx512.dylib.dSYM | |
rm -rf j64/libtsdll.dylib.dSYM | |
rm -rf j64/jamalgam.dSYM | |
script/testga.sh darwin || exit 1 | |
ls -l j64 | |
zip -r m64d.zip j64 | |
- name: Release JE (macOS debug) | |
uses: ncipollo/release-action@v1 | |
with: | |
tag: build | |
artifacts: "m64d.zip" | |
token: ${{ secrets.GITHUB_TOKEN }} | |
allowUpdates: true | |
replacesArtifacts: true | |
- name: Copy Test (macOS debug) | |
uses: actions/upload-artifact@v4 | |
with: | |
name: dist | |
path: testdarwind.txt | |
overwrite: true | |
# macOS arm64 debug ---------------------------------------------------- | |
jemacosarmd: | |
name: JE (macOS arm64 debug) | |
runs-on: macos-14 | |
steps: | |
- name: Checkout Git repository | |
uses: actions/checkout@v4 | |
- name: Setup Environment (macOS arm64 debug) | |
run: | | |
bash script/install-mac.sh | |
- name: Build JE (macOS arm64 debug) | |
env: | |
CC: clang | |
USE_SLEEF: 1 | |
USE_OPENMP: 0 | |
_DEBUG: 3 | |
run: | | |
script/buildga.sh darwin || exit 1 | |
- name: Test JE (macOS arm64 debug) | |
env: | |
_DEBUG: 3 | |
run: | | |
rm -rf j64/jconsole.dSYM | |
rm -rf j64/libj.dylib.dSYM | |
rm -rf j64/libjavx2.dylib.dSYM | |
rm -rf j64/libjavx512.dylib.dSYM | |
rm -rf j64/libtsdll.dylib.dSYM | |
rm -rf j64/jamalgam.dSYM | |
script/testga.sh darwin || exit 1 | |
ls -l j64 | |
zip -r m64armd.zip j64 | |
- name: Release JE (macOS arm64 debug) | |
uses: ncipollo/release-action@v1 | |
with: | |
tag: build | |
artifacts: "m64armd.zip" | |
token: ${{ secrets.GITHUB_TOKEN }} | |
allowUpdates: true | |
replacesArtifacts: true | |
- name: Copy Test (macOS arm64 debug) | |
uses: actions/upload-artifact@v4 | |
with: | |
name: dist | |
path: testdarwinarmd.txt | |
overwrite: true | |
# rpi64 ---------------------------------------------------------------- | |
jerpi64: | |
name: JE (Raspberry) | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout Git repository | |
uses: actions/checkout@v4 | |
- name: Build, Test JE (Raspberry) | |
uses: pguyot/arm-runner-action@v2 | |
with: | |
cpu: cortex-a53 | |
cpu_info: cpuinfo/raspberrypi_zero2_w_arm64 | |
base_image: raspios_lite_arm64:2023-05-03 | |
image_additional_mb: 1024 | |
copy_artifact_path: j64 | |
commands: | | |
apt-get install --no-install-recommends -y clang zip libomp-dev | |
export CC=clang | |
export USE_SLEEF=1 | |
export USE_OPENMP=0 | |
script/buildga.sh raspberry || exit 1 | |
script/testga.sh raspberry || exit 1 | |
cd j64 | |
strip -S jconsole | |
strip -S libj.so | |
strip -S libtsdll.so | |
strip -S jamalgam || true | |
strip -S libgmp.so | |
cd - | |
zip -r rpi64.zip j64 | |
zip rpi64.zip /usr/bin/zip | |
zip rpi64.zip /usr/bin/unzip | |
rm -rf j64 | |
mkdir j64 | |
mv rpi64.zip j64/. | |
mv testrpi64.txt j64/. | |
find j64 -type d -exec chmod a+rwx {} \; | |
find j64 -type f -exec chmod a+rw {} \; | |
- name: Compress Files (Raspberry) | |
run: | | |
ls -l j64 | |
mv j64/* . | |
- name: Release JE (Raspberry) | |
uses: ncipollo/release-action@v1 | |
with: | |
tag: build | |
artifacts: "rpi64.zip" | |
token: ${{ secrets.GITHUB_TOKEN }} | |
allowUpdates: true | |
replacesArtifacts: true | |
- name: Copy Test (Raspberry) | |
uses: actions/upload-artifact@v4 | |
with: | |
name: dist | |
path: testrpi64.txt | |
overwrite: true | |
# rpi32 ---------------------------------------------------------------- | |
jerpi32: | |
name: JE (Raspberry32) | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout Git repository | |
uses: actions/checkout@v4 | |
- name: Build, Test JE (Raspberry 32) | |
uses: pguyot/arm-runner-action@v2 | |
with: | |
cpu: arm1176 | |
cpu_info: cpuinfo/raspberrypi_zero2_w | |
base_image: raspios_lite:2023-05-03 | |
image_additional_mb: 1024 | |
copy_artifact_path: j32 | |
commands: | | |
apt-get install --no-install-recommends -y clang zip libomp-dev | |
export CC=gcc | |
export USE_SLEEF=0 | |
export USE_SLEEFQUAD=1 | |
export USE_OPENMP=0 | |
script/buildga.sh raspberry || exit 1 | |
script/testga.sh raspberry || exit 1 | |
find j32 -type d -exec chmod a+rwx {} \; | |
find j32 -type f -exec chmod a+rw {} \; | |
cd j32 | |
strip -S jconsole | |
strip -S libj.so | |
strip -S libtsdll.so | |
strip -S jamalgam || true | |
strip -S libgmp.so | |
cd - | |
zip -r rpi32.zip j32 | |
rm -rf j32 | |
mkdir j32 | |
mv rpi32.zip j32/. | |
mv testrpi32.txt j32/. | |
find j32 -type d -exec chmod a+rwx {} \; | |
find j32 -type f -exec chmod a+rw {} \; | |
- name: Compress Files (Raspberry32) | |
run: | | |
ls -l j32 | |
mv j32/* . | |
- name: Release JE (Raspberry32) | |
uses: ncipollo/release-action@v1 | |
with: | |
tag: build | |
artifacts: "rpi32.zip" | |
token: ${{ secrets.GITHUB_TOKEN }} | |
allowUpdates: true | |
replacesArtifacts: true | |
- name: Copy Test (Raspberry) | |
uses: actions/upload-artifact@v4 | |
with: | |
name: dist | |
path: testrpi32.txt | |
overwrite: true | |
# openbsd -------------------------------------------------------------- | |
jeopenbsd: | |
name: JE (OpenBSD vmactions) | |
if: ${{ false }} | |
runs-on: macos-13 | |
steps: | |
- name: Checkout Git repository | |
uses: actions/checkout@v4 | |
- name: Build, Test JE (OpenBSD) | |
uses: vmactions/openbsd-vm@v1 | |
with: | |
usesh: true | |
sync: sshfs | |
prepare: | | |
pkg_add -u | |
rdate time.cloudflare.com || true | |
pkg_add curl zip gmake nasm pcre2 | |
run: | | |
rm -f jobdone | |
/sbin/ldconfig -r | |
ls -al ~/ | |
ls -al ~/.ssh | |
echo "Host *" >>~/.ssh/config || true | |
echo " ServerAliveInterval 20" >>~/.ssh/config || true | |
echo " ServerAliveCountMax 2000000" >>~/.ssh/config || true | |
echo "client ssh config" | |
cat ~/.ssh/config || true | |
export CC=clang | |
export USE_SLEEF=1 | |
export USE_OPENMP=0 | |
script/buildga.sh openbsd || exit 1 | |
script/testga.sh openbsd || exit 1 | |
cd j64 | |
strip -S jconsole | |
strip -S libj.so | |
strip -S libjavx2.so || true | |
strip -S libjavx512.so || true | |
strip -S libtsdll.so | |
strip -S jamalgam || true | |
strip -S libgmp.so | |
cd - | |
ls -l j64 | |
zip -r obsd64.zip j64 | |
touch jobdone | |
- name: Check Status (OpenBSD) | |
run: | | |
test -f jobdone || exit 1 | |
- name: Release JE (OpenBSD) | |
uses: ncipollo/release-action@v1 | |
with: | |
tag: build | |
artifacts: "obsd64.zip" | |
token: ${{ secrets.GITHUB_TOKEN }} | |
allowUpdates: true | |
replacesArtifacts: true | |
- name: Copy Test (OpenBSD) | |
uses: actions/upload-artifact@v4 | |
with: | |
name: dist | |
path: testopenbsd.txt | |
overwrite: true | |
# openbsd -------------------------------------------------------------- | |
jeopenbsd2: | |
name: JE (OpenBSD cross-platform-actions) | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout Git repository | |
uses: actions/checkout@v4 | |
- name: Build, Test JE (OpenBSD) | |
uses: cross-platform-actions/[email protected] | |
with: | |
operating_system: openbsd | |
architecture: x86-64 | |
version: '7.6' | |
shell: bash | |
run: | | |
rm -f jobdone | |
sudo pkg_add -u | |
sudo rdate time.cloudflare.com || true | |
sudo pkg_add curl zip gmake nasm pcre2 | |
/sbin/ldconfig -r | |
ls -al ~/ | |
ls -al ~/.ssh | |
sudo echo "Host *" >>~/.ssh/config || true | |
sudo echo " ServerAliveInterval 20" >>~/.ssh/config || true | |
sudo echo " ServerAliveCountMax 2000000" >>~/.ssh/config || true | |
echo "client ssh config" | |
sudo cat ~/.ssh/config || true | |
export CC=clang | |
export USE_SLEEF=1 | |
export USE_OPENMP=0 | |
script/buildga.sh openbsd || exit 1 | |
script/testga.sh openbsd || exit 1 | |
cd j64 | |
strip -S jconsole | |
strip -S libj.so | |
strip -S libjavx2.so || true | |
strip -S libjavx512.so || true | |
strip -S libtsdll.so | |
strip -S jamalgam || true | |
strip -S libgmp.so | |
cd - | |
ls -l j64 | |
zip -r obsd64.zip j64 | |
touch jobdone | |
- name: Check Status (OpenBSD) | |
run: | | |
test -f jobdone || exit 1 | |
- name: Release JE (OpenBSD) | |
uses: ncipollo/release-action@v1 | |
with: | |
tag: build | |
artifacts: "obsd64.zip" | |
token: ${{ secrets.GITHUB_TOKEN }} | |
allowUpdates: true | |
replacesArtifacts: true | |
- name: Copy Test (OpenBSD) | |
uses: actions/upload-artifact@v4 | |
with: | |
name: dist | |
path: testopenbsd.txt | |
overwrite: true | |
# openbsd arm64 -------------------------------------------------------- | |
# too slow, comment out script/testga.sh openbsd || exit 1 | |
jeopenbsdarm64: | |
name: JE (OpenBSD arm64) | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout Git repository | |
uses: actions/checkout@v4 | |
- name: Build, Test JE (OpenBSD arm64) | |
uses: cross-platform-actions/[email protected] | |
with: | |
operating_system: openbsd | |
architecture: arm64 | |
version: '7.6' | |
shell: bash | |
run: | | |
rm -f jobdone | |
sudo pkg_add -u | |
sudo rdate time.cloudflare.com || true | |
sudo pkg_add curl zip gmake gmp pcre2 | |
/sbin/ldconfig -r | |
ls -al ~/ | |
ls -al ~/.ssh | |
sudo echo "Host *" >>~/.ssh/config || true | |
sudo echo " ServerAliveInterval 20" >>~/.ssh/config || true | |
sudo echo " ServerAliveCountMax 2000000" >>~/.ssh/config || true | |
echo "client ssh config" | |
sudo cat ~/.ssh/config || true | |
export CC=clang | |
export USE_SLEEF=1 | |
export USE_OPENMP=0 | |
script/buildga.sh openbsd || exit 1 | |
cd j64 | |
strip -S jconsole | |
strip -S libj.so | |
strip -S libtsdll.so | |
strip -S jamalgam || true | |
strip -S libgmp.so | |
cd - | |
ls -l j64 | |
zip -r obsdarm64.zip j64 | |
touch jobdone | |
- name: Check Status (OpenBSD arm64) | |
run: | | |
test -f jobdone || exit 1 | |
- name: Release JE (OpenBSD arm64) | |
uses: ncipollo/release-action@v1 | |
with: | |
tag: build | |
artifacts: "obsdarm64.zip" | |
token: ${{ secrets.GITHUB_TOKEN }} | |
allowUpdates: true | |
replacesArtifacts: true | |
- name: Copy Test (OpenBSD arm64) | |
uses: actions/upload-artifact@v4 | |
with: | |
name: dist | |
path: testopenbsdarm64.txt | |
overwrite: true | |
# freebsd -------------------------------------------------------------- | |
jefreebsd: | |
name: JE (FreeBSD vmactions) | |
if: ${{ false }} | |
runs-on: macos-13 | |
steps: | |
- name: Checkout Git repository | |
uses: actions/checkout@v4 | |
- name: Build, Test JE (FreeBSD) | |
uses: vmactions/freebsd-vm@v1 | |
with: | |
usesh: true | |
sync: sshfs | |
prepare: | | |
pkg upgrade -y | |
rdate time.cloudflare.com || true | |
pkg search openblas 1>&2 | |
pkg install -y curl zip find gmake nasm pcre2 openblas | |
find / -type f -name 'liblapack.so*' 1>&2 | |
find / -type f -name 'libopenblas.so*' 1>&2 | |
/sbin/ldconfig -r | |
run: | | |
rm -f jobdone | |
/sbin/ldconfig -r | |
ls -al ~/ | |
ls -al ~/.ssh | |
echo "Host *" >>~/.ssh/config || true | |
echo " ServerAliveInterval 20" >>~/.ssh/config || true | |
echo " ServerAliveCountMax 2000000" >>~/.ssh/config || true | |
echo "client ssh config" | |
cat ~/.ssh/config || true | |
export CC=clang | |
export USE_SLEEF=1 | |
export USE_OPENMP=0 | |
script/buildga.sh freebsd || exit 1 | |
script/testga.sh freebsd || exit 1 | |
cd j64 | |
strip -S jconsole | |
strip -S libj.so | |
strip -S libjavx2.so || true | |
strip -S libjavx512.so || true | |
strip -S jamalgam || true | |
strip -S libtsdll.so | |
strip -S libgmp.so | |
cd - | |
ls -l j64 | |
zip -r fbsd64.zip j64 | |
touch jobdone | |
- name: Check Status (FreeBSD) | |
run: | | |
test -f jobdone || exit 1 | |
- name: Release JE (FreeBSD) | |
uses: ncipollo/release-action@v1 | |
with: | |
tag: build | |
artifacts: "fbsd64.zip" | |
token: ${{ secrets.GITHUB_TOKEN }} | |
allowUpdates: true | |
replacesArtifacts: true | |
- name: Copy Test (FreeBSD) | |
uses: actions/upload-artifact@v4 | |
with: | |
name: dist | |
path: testfreebsd.txt | |
overwrite: true | |
# freebsd -------------------------------------------------------------- | |
jefreebsd2: | |
name: JE (FreeBSD cross-platform-actions) | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout Git repository | |
uses: actions/checkout@v4 | |
- name: Build, Test JE (FreeBSD) | |
uses: cross-platform-actions/[email protected] | |
with: | |
operating_system: freebsd | |
architecture: x86-64 | |
version: '14.2' | |
shell: bash | |
run: | | |
rm -f jobdone | |
export IGNORE_OSVERSION=yes | |
sudo pkg upgrade -y | |
sudo rdate time.cloudflare.com || true | |
sudo pkg search openblas 1>&2 | |
sudo pkg install -y curl zip gmake nasm pcre2 openblas | |
sudo find / -type f -name 'liblapack.so*' 1>&2 | |
sudo find / -type f -name 'libopenblas.so*' 1>&2 | |
/sbin/ldconfig -r | |
ls -al ~/ | |
ls -al ~/.ssh | |
sudo echo "Host *" >>~/.ssh/config || true | |
sudo echo " ServerAliveInterval 20" >>~/.ssh/config || true | |
sudo echo " ServerAliveCountMax 2000000" >>~/.ssh/config || true | |
echo "client ssh config" | |
sudo cat ~/.ssh/config || true | |
export CC=clang | |
export USE_SLEEF=1 | |
export USE_OPENMP=0 | |
script/buildga.sh freebsd || exit 1 | |
script/testga.sh freebsd || exit 1 | |
cd j64 | |
strip -S jconsole | |
strip -S libj.so | |
strip -S libjavx2.so || true | |
strip -S libjavx512.so || true | |
strip -S libtsdll.so | |
strip -S jamalgam || true | |
strip -S libgmp.so | |
cd - | |
ls -l j64 | |
zip -r fbsd64.zip j64 | |
touch jobdone | |
- name: Check Status (FreeBSD) | |
run: | | |
test -f jobdone || exit 1 | |
- name: Release JE (FreeBSD) | |
uses: ncipollo/release-action@v1 | |
with: | |
tag: build | |
artifacts: "fbsd64.zip" | |
token: ${{ secrets.GITHUB_TOKEN }} | |
allowUpdates: true | |
replacesArtifacts: true | |
- name: Copy Test (FreeBSD) | |
uses: actions/upload-artifact@v4 | |
with: | |
name: dist | |
path: testfreebsd.txt | |
overwrite: true | |
# freebsdarm64 -------------------------------------------------------------- | |
jefreebsdarm64: | |
name: JE (FreeBSD arm64) | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout Git repository | |
uses: actions/checkout@v4 | |
- name: Build, Test JE (FreeBSD arm64) | |
uses: cross-platform-actions/[email protected] | |
with: | |
operating_system: freebsd | |
architecture: arm64 | |
version: '14.2' | |
shell: bash | |
run: | | |
rm -f jobdone | |
export IGNORE_OSVERSION=yes | |
sudo pkg upgrade -y | |
sudo rdate time.cloudflare.com || true | |
sudo pkg search openblas 1>&2 | |
sudo pkg install -y curl zip gmake nasm pcre2 openblas | |
sudo find / -type f -name 'liblapack.so*' 1>&2 | |
sudo find / -type f -name 'libopenblas.so*' 1>&2 | |
/sbin/ldconfig -r | |
ls -al ~/ | |
ls -al ~/.ssh | |
sudo echo "Host *" >>~/.ssh/config || true | |
sudo echo " ServerAliveInterval 20" >>~/.ssh/config || true | |
sudo echo " ServerAliveCountMax 2000000" >>~/.ssh/config || true | |
echo "client ssh config" | |
sudo cat ~/.ssh/config || true | |
export CC=clang | |
export USE_SLEEF=1 | |
export USE_OPENMP=0 | |
script/buildga.sh freebsd || exit 1 | |
script/testga.sh freebsd || exit 1 | |
cd j64 | |
strip -S jconsole | |
strip -S libj.so | |
strip -S libjavx2.so || true | |
strip -S libjavx512.so || true | |
strip -S libtsdll.so | |
strip -S jamalgam || true | |
strip -S libgmp.so | |
cd - | |
ls -l j64 | |
zip -r fbsdarm64.zip j64 | |
touch jobdone | |
- name: Check Status (FreeBSD arm64) | |
run: | | |
test -f jobdone || exit 1 | |
- name: Release JE (FreeBSD arm64) | |
uses: ncipollo/release-action@v1 | |
with: | |
tag: build | |
artifacts: "fbsdarm64.zip" | |
token: ${{ secrets.GITHUB_TOKEN }} | |
allowUpdates: true | |
replacesArtifacts: true | |
- name: Copy Test (FreeBSD arm64) | |
uses: actions/upload-artifact@v4 | |
with: | |
name: dist | |
path: testfreebsdarm64.txt | |
overwrite: true | |
# android -------------------------------------------------------------- | |
jeandroid: | |
name: JE (android) | |
runs-on: macos-13 | |
steps: | |
- name: Checkout Git repository | |
uses: actions/checkout@v4 | |
- name: Setup Environment (android) | |
uses: nttld/setup-ndk@v1 | |
with: | |
ndk-version: r28b | |
local-cache: false | |
- name: Build JE (android) | |
env: | |
CC: clang | |
USE_SLEEF: 1 | |
USE_OPENMP: 0 | |
run: | | |
script/buildga.sh android || exit 1 | |
- name: Release JE (android) | |
uses: ncipollo/release-action@v1 | |
with: | |
tag: build | |
artifacts: "androidlibs.zip" | |
token: ${{ secrets.GITHUB_TOKEN }} | |
allowUpdates: true | |
replacesArtifacts: true | |
# - name: Copy Test (android) | |
# wasm ----------------------------------------------------------------- | |
jewasm: | |
name: JE (wasm) | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout Git repository | |
uses: actions/checkout@v4 | |
- name: Setup Environment (wasm) | |
uses: mymindstorm/setup-emsdk@v14 | |
- name: Build, Test JE (wasm) | |
env: | |
CC: emcc | |
USE_SLEEF: 1 | |
USE_OPENMP: 0 | |
run: | | |
script/buildga.sh wasm || exit 1 | |
script/testga.sh wasm || exit 1 | |
ls -l j32 | |
zip -r wasm32.zip j32 | |
- name: Release JE (wasm) | |
uses: ncipollo/release-action@v1 | |
with: | |
tag: build | |
artifacts: "wasm32.zip" | |
token: ${{ secrets.GITHUB_TOKEN }} | |
allowUpdates: true | |
replacesArtifacts: true | |
# - name: Copy Test (wasm) | |
# windows -------------------------------------------------------------- | |
jewin: | |
name: JE (Windows) | |
runs-on: windows-2022 | |
steps: | |
- name: Checkout Git repository | |
uses: actions/checkout@v4 | |
- name: Setup Environment (Windows) | |
uses: ilammy/msvc-dev-cmd@v1 | |
with: | |
arch: amd64 | |
- name: Build JE (Windows) | |
shell: cmd | |
run: | | |
script\buildga.cmd x64 | |
- name: Test JE (Windows) | |
shell: cmd | |
run: | | |
script\testga.cmd x64 | |
- name: Compress Files (Windows) | |
shell: pwsh | |
run: Compress-Archive j64 w64.zip | |
- name: Release JE (Windows) | |
uses: ncipollo/release-action@v1 | |
with: | |
tag: build | |
artifacts: "w64.zip" | |
token: ${{ secrets.GITHUB_TOKEN }} | |
allowUpdates: true | |
replacesArtifacts: true | |
- name: Copy Test (Windows) | |
uses: actions/upload-artifact@v4 | |
with: | |
name: dist | |
path: testwin.txt | |
overwrite: true | |
# windows -------------------------------------------------------------- | |
jewin32: | |
name: JE (Windows 32) | |
runs-on: windows-2022 | |
steps: | |
- name: Checkout Git repository | |
uses: actions/checkout@v4 | |
- name: Setup Environment (Windows 32) | |
uses: ilammy/msvc-dev-cmd@v1 | |
with: | |
arch: x86 | |
- name: Build JE (Windows 32) | |
shell: cmd | |
run: | | |
script\buildga.cmd x86 | |
- name: Test JE (Windows 32) | |
shell: cmd | |
run: | | |
script\testga.cmd x86 | |
- name: Compress Files (Windows 32) | |
shell: pwsh | |
run: Compress-Archive j32 w32.zip | |
- name: Release JE (Windows 32) | |
uses: ncipollo/release-action@v1 | |
with: | |
tag: build | |
artifacts: "w32.zip" | |
token: ${{ secrets.GITHUB_TOKEN }} | |
allowUpdates: true | |
replacesArtifacts: true | |
- name: Copy Test (Windows 32) | |
uses: actions/upload-artifact@v4 | |
with: | |
name: dist | |
path: testwin32.txt | |
overwrite: true | |
# windows arm64 old ---------------------------------------------------- | |
jewinarm64old: | |
name: JE (Windows arm64 old) | |
runs-on: windows-2022 | |
steps: | |
- name: Checkout Git repository | |
uses: actions/checkout@v4 | |
- name: Setup Environment (Windows arm64 old) | |
uses: ilammy/msvc-dev-cmd@v1 | |
with: | |
arch: amd64_arm64 | |
- name: Build JE (Windows arm64 old) | |
shell: cmd | |
run: | | |
script\buildga.cmd arm64 | |
- name: Test JE (Windows arm64 old) | |
if: ${{ false }} | |
shell: cmd | |
run: | | |
script\testga.cmd arm64 | |
- name: Compress Files (Windows arm64 old) | |
shell: pwsh | |
run: Compress-Archive jarm64 warm64old.zip | |
- name: Release JE (Windows arm64 old) | |
uses: ncipollo/release-action@v1 | |
with: | |
tag: build | |
artifacts: "warm64old.zip" | |
token: ${{ secrets.GITHUB_TOKEN }} | |
allowUpdates: true | |
replacesArtifacts: true | |
- name: Copy Test (Windows arm64 old) | |
uses: actions/upload-artifact@v4 | |
with: | |
name: dist | |
path: testwinarm64old.txt | |
overwrite: true | |
# windows arm64 -------------------------------------------------------- | |
jewinarm64: | |
name: JE (Windows11 arm64) | |
runs-on: windows-11-arm | |
steps: | |
- name: Checkout Git repository | |
uses: actions/checkout@v4 | |
- name: Setup Environment (Windows11 arm64) | |
uses: ilammy/msvc-dev-cmd@v1 | |
with: | |
arch: amd64_arm64 | |
- name: Build JE (Windows11 arm64) | |
shell: cmd | |
run: | | |
script\buildga.cmd arm64 | |
- name: Test JE (Windows11 arm64) | |
shell: cmd | |
run: | | |
script\testga.cmd arm64 | |
- name: Compress Files (Windows11 arm64) | |
shell: pwsh | |
run: Compress-Archive jarm64 warm64.zip | |
- name: Release JE (Windows11 arm64) | |
uses: ncipollo/release-action@v1 | |
with: | |
tag: build | |
artifacts: "warm64.zip" | |
token: ${{ secrets.GITHUB_TOKEN }} | |
allowUpdates: true | |
replacesArtifacts: true | |
- name: Copy Test (Windows11 arm64) | |
uses: actions/upload-artifact@v4 | |
with: | |
name: dist | |
path: testwinarm64.txt | |
overwrite: true | |
# get tests ------------------------------------------------------------ | |
tests: | |
name: Test Results | |
runs-on: ubuntu-22.04 | |
# needs: [jelinux, jelinux-gcc, jemacos, jerpi64, jerpi32, jewin, jewin32, jeandroid, jefreebsd2, jefreebsdarm64, jeopenbsd2, jeopenbsdarm64 ] | |
needs: [jelinux, jelinux-gcc, jelinuxd, jemacos, jemacosarm, jemacosd, jemacosarmd, jerpi64, jerpi32, jewin, jewin32, jewinarm64, jeandroid, jefreebsd2, jefreebsdarm64, jeopenbsd2, jeopenbsdarm64 ] | |
steps: | |
- name: Checkout Git repository | |
uses: actions/checkout@v4 | |
- name: Get Test Results | |
uses: actions/download-artifact@v4 | |
with: | |
name: dist | |
- name: Merge Test Results | |
run: script/testgares.sh | |
- name: Copy Tests to Build | |
uses: ncipollo/release-action@v1 | |
with: | |
tag: build | |
artifacts: "tests.txt" | |
token: ${{ secrets.GITHUB_TOKEN }} | |
allowUpdates: true | |
replacesArtifacts: true | |
webhook: | |
name: Run Webhook | |
runs-on: ubuntu-22.04 | |
needs: tests | |
steps: | |
- name: update server | |
uses: distributhor/workflow-webhook@v2 | |
env: | |
webhook_url: ${{ secrets.WEBHOOK_URL }} | |
webhook_secret: ${{ secrets.WEBHOOK_SECRET }} | |
data: '{ "id": "jebuild" }' |