Skip to content

Commit f081a83

Browse files
committed
Fix typo for windows artifacts, fix Jenkins
1 parent fd50ef5 commit f081a83

File tree

2 files changed

+45
-19
lines changed

2 files changed

+45
-19
lines changed

.github/workflows/ci-master.yml

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -288,11 +288,11 @@ jobs:
288288
run: |
289289
if ! command -v pkg-config &> /dev/null; then
290290
echo "pkg-config not found, installing..."
291-
brew install pkg-config
291+
brew install pkg-config --force
292292
else
293293
echo "pkg-config is already installed"
294294
fi
295-
brew install automake coreutils python-setuptools cmake make
295+
brew install automake coreutils python-setuptools cmake make --force
296296
# Workaround for macOS: https://github.com/actions/runner/issues/2958
297297
- name: Install setuptools
298298
run: sudo -H pip install setuptools
@@ -339,11 +339,11 @@ jobs:
339339
run: |
340340
if ! command -v pkg-config &> /dev/null; then
341341
echo "pkg-config not found, installing..."
342-
brew install pkg-config
342+
brew install pkg-config --force
343343
else
344344
echo "pkg-config is already installed"
345345
fi
346-
brew install automake coreutils python-setuptools
346+
brew install automake coreutils python-setuptools --force
347347
# Workaround for macOS: https://github.com/actions/runner/issues/2958
348348
- name: Install setuptools
349349
run: sudo -H pip install setuptools
@@ -557,7 +557,7 @@ jobs:
557557
mv *-win64-debug.zip x86_64-win64-guix-debug-symbols.zip || true
558558
mv *-win64-setup-unsigned.exe x86_64-win64-guix-installer-unsigned.exe || true
559559
mv *-win64.zip x86_64-win64-guix-release-binaries.zip || true
560-
mv SHA256SUMS.part x86_64-win64-guix-checksums-sha256 || true
560+
mv SHA256SUMS.part x86_64-wind64-guix-checksums-sha256 || true
561561
- name: Upload Windows Release Binaries
562562
uses: actions/upload-artifact@v4
563563
with:

Jenkinsfile

Lines changed: 40 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -7,49 +7,75 @@ pipeline {
77
}
88
environment {
99
CCACHE_DIR = '/tmp/.ccache'
10+
HOST = 'x86_64-linux-gnu'
1011
}
1112
stages {
1213
stage('Build dependencies') {
1314
steps {
1415
sh 'git clean -d -f -f -q -x'
1516
dir('depends') {
16-
sh 'make -j`nproc` HOST=x86_64-linux-gnu'
17+
sh 'make -j`nproc` HOST=${HOST}'
1718
}
1819
}
1920
}
2021
stage('Build') {
2122
steps {
22-
sh './autogen.sh'
23-
sh './configure --prefix=`pwd`/depends/x86_64-linux-gnu'
24-
sh 'make dist'
25-
sh 'mkdir -p dist'
26-
sh 'tar -C dist --strip-components=1 -xzf firo-*.tar.gz'
27-
dir('dist') {
28-
sh './configure --prefix=`pwd`/../depends/x86_64-linux-gnu --enable-tests --enable-crash-hooks'
23+
sh '''
24+
export HOST_TRIPLET=${HOST}
25+
env PKG_CONFIG_PATH="$(pwd)/depends/$HOST_TRIPLET/lib/pkgconfig:$PKG_CONFIG_PATH" \\
26+
cmake -DCMAKE_TOOLCHAIN_FILE=$(pwd)/depends/$HOST_TRIPLET/toolchain.cmake \\
27+
-DBUILD_CLI=ON -DBUILD_TESTS=ON -DBUILD_GUI=ON -DCMAKE_BUILD_TYPE=Release \\
28+
-DCLIENT_VERSION_IS_RELEASE=true -DENABLE_CRASH_HOOKS=ON \\
29+
-S$(pwd) -B$(pwd)/build
30+
'''
31+
dir('build') {
2932
sh 'make -j`nproc`'
3033
}
3134
}
3235
}
3336
stage('Test') {
3437
steps {
3538
catchError(buildResult: 'FAILURE', stageResult: 'FAILURE'){
36-
dir('dist') {
37-
sh 'make check'
39+
dir('build') {
40+
sh 'make test'
3841
}
3942
}
4043
}
4144
}
4245
stage('Archive unit tests logs') {
4346
steps {
44-
archiveArtifacts artifacts: 'dist/src/test-suite.log',
45-
allowEmptyArchive: true
47+
script {
48+
sh '''
49+
mkdir -p test-logs
50+
find build -name "LastTest.log" -exec cp {} test-logs/ctest-last.log \\; || true
51+
find build -name "LastTestsFailed.log" -exec cp {} test-logs/ctest-failed.log \\; || true
52+
find build -path "*/Testing/Temporary/*" -name "*.log" -exec cp {} test-logs/ \\; || true
53+
find build -name "*test*.log" -exec cp {} test-logs/ \\; || true
54+
'''
4655
}
56+
archiveArtifacts artifacts: 'test-logs/**',
57+
allowEmptyArchive: true
58+
}
4759
}
4860
stage('RPC Tests') {
4961
steps {
50-
dir('dist') {
51-
sh 'qa/pull-tester/rpc-tests.py -extended'
62+
sh '''
63+
export FIROD="$(pwd)/build/bin/firod"
64+
export FIROCLI="$(pwd)/build/bin/firo-cli"
65+
qa/pull-tester/rpc-tests.py -extended
66+
'''
67+
}
68+
}
69+
stage('Archive Binaries') {
70+
steps {
71+
script {
72+
sh '''
73+
mkdir -p artifacts
74+
cp build/bin/firo* artifacts/ || true
75+
'''
5276
}
77+
archiveArtifacts artifacts: 'artifacts/**',
78+
allowEmptyArchive: true
5379
}
5480
}
5581
}

0 commit comments

Comments
 (0)