Skip to content

Commit

Permalink
WIP jenkins pipeline: add nix build on linux aarch64
Browse files Browse the repository at this point in the history
  • Loading branch information
neodix42 committed Dec 18, 2023
1 parent 57682fe commit ebf7ec3
Show file tree
Hide file tree
Showing 3 changed files with 23 additions and 1 deletion.
7 changes: 6 additions & 1 deletion .github/workflows/build-ton-wasm-emscripten.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,12 @@ jobs:
with:
submodules: 'recursive'

- name: Configure & Build
- name: Install system libraries
run: |
sudo apt-get update
sudo apt-get install -y build-essential git openssl cmake ninja-build zlib1g-dev libssl-dev libsecp256k1-dev libmicrohttpd-dev libsodium-dev
- name: Build TON WASM artifacts
run: |
cd assembly/wasm
chmod +x fift-func-wasm-build-ubuntu.sh
Expand Down
16 changes: 16 additions & 0 deletions assembly/cicd/jenkins/test-builds.groovy
Original file line number Diff line number Diff line change
Expand Up @@ -74,6 +74,22 @@ pipeline {
}
}
}
stage('Ubuntu 20.04 aarch64 (nix)') {
agent {
label 'Ubuntu_arm64'
}
steps {
timeout(time: 90, unit: 'MINUTES') {
sh '''
cp assembly/nix/linux-x86-64-static.nix .
export NIX_PATH=nixpkgs=https://github.com/nixOS/nixpkgs/archive/23.11.tar.gz
nix-build linux-x86-64-static.nix
'''
sh 'zip -r ton-arm64-linux-nix ./result/*'
archiveArtifacts artifacts: 'ton-arm64-linux-nix.zip'
}
}
}
stage('macOS 12.7 x86-64 (shared)') {
agent {
label 'macOS_12.7_x86-64'
Expand Down
1 change: 1 addition & 0 deletions assembly/nix/linux-x86-64-static.nix
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,7 @@ pkgs.stdenv.mkDerivation { # gcc
];

makeStatic = true;
doTest = true;

configureFlags = [

Expand Down

0 comments on commit ebf7ec3

Please sign in to comment.