artifact despite failing tests

This commit is contained in:
Michiel Borkent 2025-04-26 12:47:18 +02:00
parent aa15e5212a
commit 4da643cf63
5 changed files with 19 additions and 17 deletions

View file

@ -179,10 +179,11 @@ java -jar \"$jar\" --config .build/bb.edn --deps-root . release-artifact \"$refl
(run "Build binary" (if (= "aarch64" arch) (run "Build binary" (if (= "aarch64" arch)
"script/uberjar\nscript/compile -H:PageSize=64K # --pgo=default.iprof" "script/uberjar\nscript/compile -H:PageSize=64K # --pgo=default.iprof"
"script/uberjar\nscript/compile # --pgo=default.iprof") "30m") "script/uberjar\nscript/compile # --pgo=default.iprof") "30m")
(run "Run tests" "script/test\nscript/run_lib_tests")
(run "Release" ".circleci/script/release") (run "Release" ".circleci/script/release")
{:persist_to_workspace {:root "/tmp" {:persist_to_workspace {:root "/tmp"
:paths ["release"]}} :paths ["release"]}}
(run "Run tests" "script/test\nscript/run_lib_tests")
(run "Release + publish" "BABASHKA_PUBLISH=true .circleci/script/release")
{:save_cache {:save_cache
{:paths ["~/.m2" "~/graalvm"] {:paths ["~/.m2" "~/graalvm"]
:key cache-key}} :key cache-key}}

View file

@ -29,7 +29,9 @@ tar zcvf "$archive" bb # bbk
cd - cd -
./bb --config .build/bb.edn --deps-root . release-artifact "/tmp/release/$archive" if [ "$BABASHKA_RELEASE" = "true" ]; then
./bb --config .build/bb.edn --deps-root . release-artifact "/tmp/release/$archive"
fi
## cleanup ## cleanup

View file

@ -84,6 +84,11 @@ jobs:
bb --config .build/bb.edn --deps-root . release-artifact %zip% bb --config .build/bb.edn --deps-root . release-artifact %zip%
- name: Upload artifact
uses: actions/upload-artifact@v4
with:
path: bb.exe
name: babashka-${{ steps.babashka-version.outputs.version }}-${{ matrix.name }}-amd64
- name: Test binary and libs - name: Test binary and libs
shell: cmd shell: cmd
@ -92,9 +97,3 @@ jobs:
set BABASHKA_TEST_ENV=native set BABASHKA_TEST_ENV=native
call script/test.bat :windows call script/test.bat :windows
call script/run_lib_tests.bat call script/run_lib_tests.bat
- name: Upload artifact
uses: actions/upload-artifact@v4
with:
path: bb.exe
name: babashka-${{ steps.babashka-version.outputs.version }}-${{ matrix.name }}-amd64

View file

@ -172,14 +172,6 @@ jobs:
BABASHKA_MUSL: "true" BABASHKA_MUSL: "true"
run: script/compile run: script/compile
- name: Test binary and libs
run: |
script/test
script/run_lib_tests
- name: Release
run: .circleci/script/release
- name: Upload artifact - name: Upload artifact
uses: actions/upload-artifact@v4 uses: actions/upload-artifact@v4
with: with:
@ -193,6 +185,14 @@ jobs:
path: bb path: bb
name: babashka-${{ steps.babashka-version.outputs.version }}-${{ matrix.name }}-static-amd64 name: babashka-${{ steps.babashka-version.outputs.version }}-${{ matrix.name }}-static-amd64
- name: Test binary and libs
run: |
script/test
script/run_lib_tests
- name: Release
run: .circleci/script/release
docker: docker:
if: ${{ false }} # Disabled if: ${{ false }} # Disabled
# if: "!contains(github.event.head_commit.message, 'skip ci') && github.event_name == 'push' && github.ref == 'refs/heads/master'" # if: "!contains(github.event.head_commit.message, 'skip ci') && github.event_name == 'push' && github.ref == 'refs/heads/master'"

View file

@ -205,7 +205,7 @@
com.potetm/fusebox {:git-url "https://github.com/potetm/fusebox" com.potetm/fusebox {:git-url "https://github.com/potetm/fusebox"
:git-sha "2f42391868c82c193628bec8922f8735ae3cac66" :git-sha "2f42391868c82c193628bec8922f8735ae3cac66"
:test-paths ["test"] :test-paths ["test"]
:test-namespaces [#_com.potetm.fusebox.bulkhead-test :test-namespaces [com.potetm.fusebox.bulkhead-test
com.potetm.fusebox.bulwark-test com.potetm.fusebox.bulwark-test
com.potetm.fusebox.circuit-breaker-test com.potetm.fusebox.circuit-breaker-test
com.potetm.fusebox.fallback-test com.potetm.fusebox.fallback-test