@@ -360,6 +360,109 @@ jobs:
360360 exit 1
361361 fi
362362
363+ - name : Upload Artifact
364+ 365+ if : success()
366+ with :
367+ name : stackql_linux_amd64
368+ path : build/stackql
369+
370+ - name : prepare deb boilerplate
371+ run : |
372+ mkdir -p .debpkg/usr/bin
373+ cp -p build/stackql .debpkg/usr/bin/
374+
375+ - uses : jiro4989/build-deb-action@v3
376+ name : build deb package
377+ with :
378+ package : stackql
379+ package_root : .debpkg
380+ maintainer : stackql
381+ version : ${{env.BUILDMAJORVERSION}}.${{env.BUILDMINORVERSION}}.${{env.BUILDPATCHVERSION}}
382+ arch : ' amd64'
383+ # depends: 'libc6 (>= 2.2.1), git'
384+ desc : ' stackql treats the internet as a relational database'
385+ homepage : ' https://stackql.io'
386+
387+ - name : Upload deb Artifact
388+ 389+ if : success()
390+ with :
391+ name : amd64-artifact-deb
392+ path : |
393+ ./*.deb
394+
395+ linuxtest :
396+ name : Linux Test
397+ needs :
398+ - linuxbuild
399+ runs-on : ubuntu-22.04
400+ timeout-minutes : ${{ vars.DEFAULT_JOB_TIMEOUT_MIN == '' && 120 || vars.DEFAULT_JOB_TIMEOUT_MIN }}
401+ steps :
402+
403+ - name : Check out code into the Go module directory
404+ 405+
406+ - name : Download Artifact
407+ 408+ with :
409+ name : stackql_linux_amd64
410+ path : build
411+
412+
413+ - name : Download deb Artifact
414+ 415+ with :
416+ name : amd64-artifact-deb
417+ path : .
418+
419+ - name : Check archive presence
420+ run : |
421+ ls -al .
422+
423+
424+ - name : Stackql permissions
425+ run : |
426+ sudo chmod a+rwx build/stackql
427+ ls -al build/stackql
428+ ls -al .
429+
430+ - name : Set up Go 1.x
431+ 432+ with :
433+ go-version : ^1.21
434+ check-latest : true
435+ cache : true
436+ id : go
437+
438+ - name : Setup Python
439+ 440+ with :
441+ cache : pip
442+ python-version : ' 3.11'
443+
444+ - name : Git Ref Parse
445+ id : git_ref_parse
446+ run : |
447+ {
448+ echo "SOURCE_NAME=${GITHUB_REF#refs/*/}"
449+ echo "SOURCE_TAG=${GITHUB_REF#refs/tags/}"
450+ echo "SOURCE_TAG=${GITHUB_REF#refs/tags/}"
451+ } >> "${GITHUB_STATE}"
452+
453+ - name : Install psql
454+ run : |
455+ sudo apt-get update
456+ sudo apt-get install --yes --no-install-recommends postgresql-client
457+
458+ - name : Install Python dependencies
459+ run : |
460+ pip3 install -r cicd/requirements.txt
461+
462+ - name : Generate rewritten registry for simulations
463+ run : |
464+ python3 test/python/registry-rewrite.py
465+
363466 - name : Create certificates for robot tests
364467 run : |
365468 openssl req -x509 -keyout test/server/mtls/credentials/pg_server_key.pem -out test/server/mtls/credentials/pg_server_cert.pem -config test/server/mtls/openssl.cnf -days 365
@@ -411,30 +514,6 @@ jobs:
411514 run : python3 "${TESTSCRIPT}"
412515 env :
413516 TESTSCRIPT : ${{env.TESTSCRIPT}}
414-
415- - name : Upload Artifact
416- 417- if : success()
418- with :
419- name : stackql_linux_amd64
420- path : build/stackql
421-
422- - name : prepare deb boilerplate
423- run : |
424- mkdir -p .debpkg/usr/bin
425- cp -p build/stackql .debpkg/usr/bin/
426-
427- - uses : jiro4989/build-deb-action@v3
428- name : build deb package
429- with :
430- package : stackql
431- package_root : .debpkg
432- maintainer : stackql
433- version : ${{env.BUILDMAJORVERSION}}.${{env.BUILDMINORVERSION}}.${{env.BUILDPATCHVERSION}}
434- arch : ' amd64'
435- # depends: 'libc6 (>= 2.2.1), git'
436- desc : ' stackql treats the internet as a relational database'
437- homepage : ' https://stackql.io'
438517
439518 - name : install and test deb package
440519 run : |
@@ -454,15 +533,7 @@ jobs:
454533 - name : Output from mocked deb package functional tests
455534 if : always()
456535 run : |
457- cat ./test/robot/reports/output.xml
458-
459- - name : Upload deb Artifact
460- 461- if : success()
462- with :
463- name : amd64-artifact-deb
464- path : |
465- ./*.deb
536+ cat ./test/robot/reports/output.xmls
466537
467538 linuxarmbuild :
468539 name : Linux arm64 Build
0 commit comments