Refine Actions (#1261)
This commit is contained in:
parent
eee3b55f56
commit
5b455cd51b
2 changed files with 129 additions and 271 deletions
|
|
@ -471,7 +471,7 @@ workflows:
|
||||||
- jvm
|
- jvm
|
||||||
- linux
|
- linux
|
||||||
- linux-static
|
- linux-static
|
||||||
- mac
|
# - mac # TODO: Enable when not needed from Actions
|
||||||
- linux-aarch64
|
- linux-aarch64
|
||||||
- linux-aarch64-static
|
- linux-aarch64-static
|
||||||
- deploy:
|
- deploy:
|
||||||
|
|
@ -481,7 +481,7 @@ workflows:
|
||||||
requires:
|
requires:
|
||||||
- jvm
|
- jvm
|
||||||
- linux
|
- linux
|
||||||
- mac
|
# - mac # TODO: Enable when not needed from Actions
|
||||||
- docker:
|
- docker:
|
||||||
filters:
|
filters:
|
||||||
branches:
|
branches:
|
||||||
|
|
|
||||||
444
.github/workflows/build.yml
vendored
444
.github/workflows/build.yml
vendored
|
|
@ -4,80 +4,65 @@ on:
|
||||||
push:
|
push:
|
||||||
branches:
|
branches:
|
||||||
- master
|
- master
|
||||||
|
pull_request:
|
||||||
|
|
||||||
|
# TODO: Add deploy if needed
|
||||||
jobs:
|
jobs:
|
||||||
|
|
||||||
scratch:
|
|
||||||
if: "!contains(github.event.head_commit.message, 'skip ci')"
|
|
||||||
runs-on: ubuntu-18.04
|
|
||||||
steps:
|
|
||||||
- name: Git checkout
|
|
||||||
uses: actions/checkout@v1
|
|
||||||
with:
|
|
||||||
fetch-depth: 1
|
|
||||||
submodules: 'true'
|
|
||||||
|
|
||||||
- name: Scratch
|
|
||||||
run: |
|
|
||||||
echo "Scratch"
|
|
||||||
|
|
||||||
jvm:
|
jvm:
|
||||||
if: "!contains(github.event.head_commit.message, 'skip ci')"
|
if: "!contains(github.event.head_commit.message, 'skip ci')"
|
||||||
# ubuntu 18.04 comes with lein + java8 installed
|
runs-on: ubuntu-latest
|
||||||
runs-on: ubuntu-18.04
|
env:
|
||||||
|
LEIN_ROOT: "true"
|
||||||
|
BABASHKA_PLATFORM: linux # could be used in jar name
|
||||||
steps:
|
steps:
|
||||||
- name: Git checkout
|
- name: Git checkout
|
||||||
uses: actions/checkout@v1
|
uses: actions/checkout@v2
|
||||||
with:
|
with:
|
||||||
fetch-depth: 1
|
fetch-depth: 1
|
||||||
submodules: 'true'
|
submodules: 'true'
|
||||||
|
|
||||||
- name: Cache deps
|
- name: Cache deps
|
||||||
uses: actions/cache@v1
|
uses: actions/cache@v2
|
||||||
id: cache-deps
|
id: cache-deps
|
||||||
with:
|
with:
|
||||||
path: ~/.m2/repository
|
path: ~/.m2/repository
|
||||||
key: ${{ runner.os }}-maven-${{ hashFiles('project.clj') }}
|
key: ${{ runner.os }}-maven-${{ hashFiles('project.clj') }}
|
||||||
restore-keys: |
|
restore-keys: ${{ runner.os }}-maven-
|
||||||
${{ runner.os }}-maven-
|
|
||||||
|
|
||||||
- name: Cache GraalVM
|
- name: Prepare java
|
||||||
uses: actions/cache@v1
|
uses: actions/setup-java@v2
|
||||||
id: cache-graalvm
|
|
||||||
with:
|
with:
|
||||||
path: ~/graalvm-ce-java11-22.1.0
|
distribution: 'adopt-hotspot'
|
||||||
key: ${{ runner.os }}-graalvm-22.1.0
|
java-version: '11'
|
||||||
restore-keys: |
|
|
||||||
${{ runner.os }}-graalvm-22.1.0
|
|
||||||
|
|
||||||
- name: Download GraalVM
|
- name: Install clojure tools
|
||||||
run: |
|
uses: DeLaGuardo/setup-clojure@5.0
|
||||||
cd ~
|
with:
|
||||||
if ! [ -d graalvm-ce-java11-22.1.0 ]; then
|
cli: 1.10.3.1040
|
||||||
curl -O -sL https://github.com/graalvm/graalvm-ce-builds/releases/download/vm-22.1.0/graalvm-ce-java11-linux-amd64-22.1.0.tar.gz
|
lein: 2.9.8
|
||||||
tar xzf graalvm-ce-java11-linux-amd64-22.1.0.tar.gz
|
|
||||||
fi
|
|
||||||
|
|
||||||
- name: Fetch deps
|
|
||||||
if: steps.cache-deps.outputs.cache-hit != 'true'
|
|
||||||
run: |
|
|
||||||
lein deps
|
|
||||||
|
|
||||||
- name: Run tests
|
- name: Run tests
|
||||||
|
env:
|
||||||
|
BABASHKA_FEATURE_JDBC: "true"
|
||||||
|
BABASHKA_FEATURE_POSTGRESQL: "true"
|
||||||
run: |
|
run: |
|
||||||
export GRAALVM_HOME="$HOME/graalvm-ce-java11-22.1.0"
|
|
||||||
script/test
|
script/test
|
||||||
|
|
||||||
- name: Test libraries
|
|
||||||
run: |
|
|
||||||
export GRAALVM_HOME="$HOME/graalvm-ce-java11-22.1.0"
|
|
||||||
sudo script/install-clojure
|
|
||||||
script/run_lib_tests
|
script/run_lib_tests
|
||||||
|
|
||||||
|
- name: Run as lein command
|
||||||
|
run: echo '{:a 1}' | lein bb '(:a *in*)'
|
||||||
|
|
||||||
- name: Build uberjar
|
- name: Build uberjar
|
||||||
run: |
|
run: |
|
||||||
export GRAALVM_HOME="$HOME/graalvm-ce-java11-22.1.0"
|
mkdir -p /tmp/release
|
||||||
script/uberjar
|
script/uberjar
|
||||||
|
VERSION=$(cat resources/BABASHKA_VERSION)
|
||||||
|
jar=target/babashka-$VERSION-standalone.jar
|
||||||
|
cp $jar /tmp/release
|
||||||
|
java -jar $jar script/reflection.clj
|
||||||
|
reflection="babashka-$VERSION-reflection.json"
|
||||||
|
java -jar "$jar" --config .build/bb.edn --deps-root . release-artifact "$jar"
|
||||||
|
java -jar "$jar" --config .build/bb.edn --deps-root . release-artifact "$reflection"
|
||||||
|
|
||||||
- name: Babashka version
|
- name: Babashka version
|
||||||
id: babashka-version
|
id: babashka-version
|
||||||
|
|
@ -87,260 +72,126 @@ jobs:
|
||||||
|
|
||||||
- uses: actions/upload-artifact@v1
|
- uses: actions/upload-artifact@v1
|
||||||
with:
|
with:
|
||||||
name: jar
|
name: babashka-${{ steps.babashka-version.outputs.version }}-standalone.jar
|
||||||
path: target/babashka-${{ steps.babashka-version.outputs.version }}-standalone.jar
|
path: target/babashka-${{ steps.babashka-version.outputs.version }}-standalone.jar
|
||||||
|
|
||||||
linux:
|
native:
|
||||||
if: "!contains(github.event.head_commit.message, 'skip ci')"
|
if: "!contains(github.event.head_commit.message, 'skip ci')"
|
||||||
needs: [jvm]
|
strategy:
|
||||||
runs-on: ubuntu-18.04
|
matrix:
|
||||||
steps:
|
include:
|
||||||
- name: Git checkout
|
- os: macos-12
|
||||||
uses: actions/checkout@v1
|
name: macos
|
||||||
with:
|
static: false
|
||||||
fetch-depth: 1
|
#- os: ubuntu-latest
|
||||||
submodules: 'true'
|
# name: linux
|
||||||
|
# static: false
|
||||||
- uses: actions/download-artifact@v1
|
#- os: ubuntu-latest
|
||||||
with:
|
# name: linux
|
||||||
name: jar
|
# static: true
|
||||||
path: .
|
runs-on: ${{ matrix.os }}
|
||||||
|
|
||||||
- name: Cache deps
|
|
||||||
uses: actions/cache@v1
|
|
||||||
id: cache-deps
|
|
||||||
with:
|
|
||||||
path: ~/.m2/repository
|
|
||||||
key: ${{ runner.os }}-maven-${{ hashFiles('project.clj') }}
|
|
||||||
restore-keys: |
|
|
||||||
${{ runner.os }}-maven-
|
|
||||||
|
|
||||||
- name: Cache GraalVM
|
|
||||||
uses: actions/cache@v1
|
|
||||||
id: cache-graalvm
|
|
||||||
with:
|
|
||||||
path: ~/graalvm-ce-java11-22.1.0
|
|
||||||
key: ${{ runner.os }}-graalvm-22.1.0
|
|
||||||
restore-keys: |
|
|
||||||
${{ runner.os }}-graalvm-22.1.0
|
|
||||||
|
|
||||||
- name: Download GraalVM
|
|
||||||
run: |
|
|
||||||
cd ~
|
|
||||||
if ! [ -d graalvm-ce-java11-22.1.0 ]; then
|
|
||||||
curl -O -sL https://github.com/graalvm/graalvm-ce-builds/releases/download/vm-22.1.0/graalvm-ce-java11-linux-amd64-22.1.0.tar.gz
|
|
||||||
tar xzf graalvm-ce-java11-linux-amd64-22.1.0.tar.gz
|
|
||||||
fi
|
|
||||||
|
|
||||||
- name: Babashka version
|
|
||||||
id: babashka-version
|
|
||||||
run: |
|
|
||||||
BABASHKA_VERSION=$(cat resources/BABASHKA_VERSION)
|
|
||||||
echo "##[set-output name=version;]${BABASHKA_VERSION}"
|
|
||||||
|
|
||||||
- name: Build Linux native image
|
|
||||||
run: |
|
|
||||||
export BABASHKA_JAR=babashka-${{ steps.babashka-version.outputs.version }}-standalone.jar
|
|
||||||
export BABASHKA_XMX="-J-Xmx6g"
|
|
||||||
export GRAALVM_HOME="$HOME/graalvm-ce-java11-22.1.0"
|
|
||||||
script/compile
|
|
||||||
|
|
||||||
- name: Test binary
|
|
||||||
run: |
|
|
||||||
export GRAALVM_HOME="$HOME/graalvm-ce-java11-22.1.0"
|
|
||||||
BABASHKA_TEST_ENV=native script/test
|
|
||||||
|
|
||||||
- name: Install clojure
|
|
||||||
run: |
|
|
||||||
sudo script/install-clojure /usr/local
|
|
||||||
|
|
||||||
- name: Test libraries
|
|
||||||
run: |
|
|
||||||
export GRAALVM_HOME="$HOME/graalvm-ce-java11-22.1.0"
|
|
||||||
BABASHKA_TEST_ENV=native script/run_lib_tests
|
|
||||||
|
|
||||||
- name: Upload artifact
|
|
||||||
uses: actions/upload-artifact@v2
|
|
||||||
with:
|
|
||||||
path: bb
|
|
||||||
name: babashka-${{ steps.babashka-version.outputs.version }}-linux-amd64.zip
|
|
||||||
|
|
||||||
linux-static:
|
|
||||||
if: "!contains(github.event.head_commit.message, 'skip ci')"
|
|
||||||
needs: [jvm]
|
|
||||||
runs-on: ubuntu-16.04
|
|
||||||
steps:
|
|
||||||
- name: Git checkout
|
|
||||||
uses: actions/checkout@v1
|
|
||||||
with:
|
|
||||||
fetch-depth: 1
|
|
||||||
submodules: 'true'
|
|
||||||
|
|
||||||
- uses: actions/download-artifact@v1
|
|
||||||
with:
|
|
||||||
name: jar
|
|
||||||
path: .
|
|
||||||
|
|
||||||
- name: Cache deps
|
|
||||||
uses: actions/cache@v1
|
|
||||||
id: cache-deps
|
|
||||||
with:
|
|
||||||
path: ~/.m2/repository
|
|
||||||
key: ${{ runner.os }}-maven-${{ hashFiles('project.clj') }}
|
|
||||||
restore-keys: |
|
|
||||||
${{ runner.os }}-maven-
|
|
||||||
|
|
||||||
- name: Cache GraalVM
|
|
||||||
uses: actions/cache@v1
|
|
||||||
id: cache-graalvm
|
|
||||||
with:
|
|
||||||
path: ~/graalvm-ce-java11-22.1.0
|
|
||||||
key: ${{ runner.os }}-graalvm-22.1.0
|
|
||||||
restore-keys: |
|
|
||||||
${{ runner.os }}-graalvm-22.1.0
|
|
||||||
|
|
||||||
- name: Download GraalVM
|
|
||||||
run: |
|
|
||||||
cd ~
|
|
||||||
if ! [ -d graalvm-ce-java11-22.1.0 ]; then
|
|
||||||
curl -O -sL https://github.com/graalvm/graalvm-ce-builds/releases/download/vm-22.1.0/graalvm-ce-java11-linux-amd64-22.1.0.tar.gz
|
|
||||||
tar xzf graalvm-ce-java11-linux-amd64-22.1.0.tar.gz
|
|
||||||
fi
|
|
||||||
|
|
||||||
- name: Babashka version
|
|
||||||
id: babashka-version
|
|
||||||
run: |
|
|
||||||
BABASHKA_VERSION=$(cat resources/BABASHKA_VERSION)
|
|
||||||
echo "##[set-output name=version;]${BABASHKA_VERSION}"
|
|
||||||
|
|
||||||
- name: Build Linux native image
|
|
||||||
run: |
|
|
||||||
export BABASHKA_JAR=babashka-${{ steps.babashka-version.outputs.version }}-standalone.jar
|
|
||||||
export BABASHKA_XMX="-J-Xmx6g"
|
|
||||||
export GRAALVM_HOME="$HOME/graalvm-ce-java11-22.1.0"
|
|
||||||
export BABASHKA_STATIC=true
|
|
||||||
script/compile
|
|
||||||
|
|
||||||
- name: Test binary
|
|
||||||
run: |
|
|
||||||
./bb '(+ 1 2 3)'
|
|
||||||
export GRAALVM_HOME="$HOME/graalvm-ce-java11-22.1.0"
|
|
||||||
BABASHKA_TEST_ENV=native script/test
|
|
||||||
|
|
||||||
- name: Install clojure
|
|
||||||
run: |
|
|
||||||
sudo script/install-clojure
|
|
||||||
|
|
||||||
- name: Test libraries
|
|
||||||
run: |
|
|
||||||
export GRAALVM_HOME="$HOME/graalvm-ce-java11-22.1.0"
|
|
||||||
BABASHKA_TEST_ENV=native script/run_lib_tests
|
|
||||||
|
|
||||||
- name: Upload artifact
|
|
||||||
uses: actions/upload-artifact@v2
|
|
||||||
with:
|
|
||||||
path: bb
|
|
||||||
name: babashka-${{ steps.babashka-version.outputs.version }}-linux-static-amd64.zip
|
|
||||||
|
|
||||||
mac:
|
|
||||||
if: "!contains(github.event.head_commit.message, 'skip ci')"
|
|
||||||
needs: [jvm]
|
|
||||||
runs-on: macos-latest
|
|
||||||
steps:
|
|
||||||
- name: Git checkout
|
|
||||||
uses: actions/checkout@v1
|
|
||||||
with:
|
|
||||||
fetch-depth: 1
|
|
||||||
submodules: 'true'
|
|
||||||
|
|
||||||
- uses: actions/download-artifact@v1
|
|
||||||
with:
|
|
||||||
name: jar
|
|
||||||
path: .
|
|
||||||
|
|
||||||
- name: Cache GraalVM
|
|
||||||
uses: actions/cache@v1
|
|
||||||
id: cache-graalvm
|
|
||||||
with:
|
|
||||||
path: ~/graalvm-ce-java11-22.1.0
|
|
||||||
key: ${{ runner.os }}-graalvm-22.1.0
|
|
||||||
restore-keys: |
|
|
||||||
${{ runner.os }}-graalvm-22.1.0
|
|
||||||
|
|
||||||
- name: Download GraalVM
|
|
||||||
run: |
|
|
||||||
cd ~
|
|
||||||
if ! [ -d graalvm-ce-java11-22.1.0 ]; then
|
|
||||||
curl -O -sL https://github.com/graalvm/graalvm-ce-builds/releases/download/vm-22.1.0/graalvm-ce-java11-darwin-amd64-22.1.0.tar.gz
|
|
||||||
tar xzf graalvm-ce-java11-darwin-amd64-22.1.0.tar.gz
|
|
||||||
fi
|
|
||||||
|
|
||||||
- name: Babashka version
|
|
||||||
id: babashka-version
|
|
||||||
run: |
|
|
||||||
BABASHKA_VERSION=$(cat resources/BABASHKA_VERSION)
|
|
||||||
echo "##[set-output name=version;]${BABASHKA_VERSION}"
|
|
||||||
|
|
||||||
- name: Build macOS native image
|
|
||||||
run: |
|
|
||||||
export BABASHKA_JAR=babashka-${{ steps.babashka-version.outputs.version }}-standalone.jar
|
|
||||||
export BABASHKA_XMX="-J-Xmx6g"
|
|
||||||
export GRAALVM_HOME="$HOME/graalvm-ce-java11-22.1.0/Contents/Home"
|
|
||||||
script/compile
|
|
||||||
|
|
||||||
- name: Test binary
|
|
||||||
run: |
|
|
||||||
export GRAALVM_HOME="$HOME/graalvm-ce-java11-22.1.0/Contents/Home"
|
|
||||||
sudo script/install-leiningen
|
|
||||||
BABASHKA_TEST_ENV=native script/test
|
|
||||||
|
|
||||||
- name: Test libraries
|
|
||||||
run: |
|
|
||||||
export GRAALVM_HOME="$HOME/graalvm-ce-java11-22.1.0/Contents/Home"
|
|
||||||
sudo script/install-clojure
|
|
||||||
BABASHKA_TEST_ENV=native script/run_lib_tests
|
|
||||||
|
|
||||||
- uses: actions/upload-artifact@v1
|
|
||||||
with:
|
|
||||||
path: bb
|
|
||||||
name: babashka-${{ steps.babashka-version.outputs.version }}-macos-amd64.zip
|
|
||||||
|
|
||||||
deploy:
|
|
||||||
if: "!contains(github.event.head_commit.message, 'skip ci') && github.event_name == 'push' && github.ref == 'refs/heads/master'"
|
|
||||||
needs: [jvm, linux, linux-static, mac]
|
|
||||||
runs-on: ubuntu-18.04
|
|
||||||
steps:
|
|
||||||
- name: Git checkout
|
|
||||||
uses: actions/checkout@v1
|
|
||||||
with:
|
|
||||||
fetch-depth: 1
|
|
||||||
submodules: 'true'
|
|
||||||
|
|
||||||
- name: Cache deps
|
|
||||||
uses: actions/cache@v1
|
|
||||||
id: cache-deps
|
|
||||||
with:
|
|
||||||
path: ~/.m2/repository
|
|
||||||
key: ${{ runner.os }}-maven-${{ hashFiles('project.clj') }}
|
|
||||||
restore-keys: |
|
|
||||||
${{ runner.os }}-maven-
|
|
||||||
|
|
||||||
- name: Deploy
|
|
||||||
env:
|
env:
|
||||||
CLOJARS_USER: "${{ secrets.CLOJARS_USER }}"
|
LEIN_ROOT: "true"
|
||||||
CLOJARS_PASS: "${{ secrets.CLOJARS_PASS }}"
|
GRAALVM_VERSION: "22.1.0"
|
||||||
|
BABASHKA_PLATFORM: ${{ matrix.name }} # used in release script
|
||||||
|
BABASHKA_TEST_ENV: native
|
||||||
|
BABASHKA_XMX: "-J-Xmx6500m"
|
||||||
|
steps:
|
||||||
|
- name: Git checkout
|
||||||
|
uses: actions/checkout@v2
|
||||||
|
with:
|
||||||
|
fetch-depth: 1
|
||||||
|
submodules: 'true'
|
||||||
|
|
||||||
|
- name: Cache deps
|
||||||
|
uses: actions/cache@v2
|
||||||
|
id: cache-deps
|
||||||
|
with:
|
||||||
|
path: ~/.m2/repository
|
||||||
|
key: ${{ runner.os }}-maven-${{ hashFiles('project.clj') }}
|
||||||
|
restore-keys: ${{ runner.os }}-maven-
|
||||||
|
|
||||||
|
- name: Setup GraalVM
|
||||||
|
if: "matrix.static == false"
|
||||||
|
uses: graalvm/setup-graalvm@v1
|
||||||
|
with:
|
||||||
|
version: '22.1.0'
|
||||||
|
java-version: '11'
|
||||||
|
components: 'native-image'
|
||||||
|
github-token: ${{ secrets.GITHUB_TOKEN }}
|
||||||
|
|
||||||
|
- name: Setup GraalVM+musl
|
||||||
|
if: "matrix.static == true"
|
||||||
|
uses: graalvm/setup-graalvm@v1
|
||||||
|
with:
|
||||||
|
version: '22.1.0'
|
||||||
|
java-version: '11'
|
||||||
|
components: 'native-image'
|
||||||
|
native-image-musl: true
|
||||||
|
github-token: ${{ secrets.GITHUB_TOKEN }}
|
||||||
|
|
||||||
|
- name: Install clojure tools
|
||||||
|
uses: DeLaGuardo/setup-clojure@5.0
|
||||||
|
with:
|
||||||
|
cli: 1.10.3.1040
|
||||||
|
lein: 2.9.8
|
||||||
|
|
||||||
|
- name: Install native dev tools
|
||||||
|
if: matrix.os == 'ubuntu-latest'
|
||||||
run: |
|
run: |
|
||||||
.github/script/deploy
|
sudo apt-get update
|
||||||
|
sudo apt-get -y install build-essential zlib1g-dev
|
||||||
|
|
||||||
|
- name: Babashka version
|
||||||
|
id: babashka-version
|
||||||
|
run: |
|
||||||
|
BABASHKA_VERSION=$(cat resources/BABASHKA_VERSION)
|
||||||
|
echo "##[set-output name=version;]${BABASHKA_VERSION}"
|
||||||
|
|
||||||
|
- name: Build uberjar
|
||||||
|
run: script/uberjar
|
||||||
|
|
||||||
|
- name: Build native image
|
||||||
|
if: "matrix.static == false"
|
||||||
|
run: script/compile
|
||||||
|
|
||||||
|
- name: Build static native image
|
||||||
|
if: "matrix.static == true"
|
||||||
|
env:
|
||||||
|
BABASHKA_STATIC: "true"
|
||||||
|
BABASHKA_MUSL: "true"
|
||||||
|
run: script/compile
|
||||||
|
|
||||||
|
- name: Test binary and libs
|
||||||
|
run: |
|
||||||
|
script/test
|
||||||
|
script/run_lib_tests
|
||||||
|
|
||||||
|
- name: Release
|
||||||
|
run: .circleci/script/release
|
||||||
|
|
||||||
|
- name: Upload artifact
|
||||||
|
uses: actions/upload-artifact@v2
|
||||||
|
with:
|
||||||
|
path: bb
|
||||||
|
name: babashka-${{ steps.babashka-version.outputs.version }}-${{ matrix.name }}-amd64
|
||||||
|
|
||||||
|
- name: Upload static artifact
|
||||||
|
if: "matrix.static == true"
|
||||||
|
uses: actions/upload-artifact@v2
|
||||||
|
with:
|
||||||
|
path: bb
|
||||||
|
name: babashka-${{ steps.babashka-version.outputs.version }}-${{ matrix.name }}-static-amd64
|
||||||
|
|
||||||
docker:
|
docker:
|
||||||
if: "!contains(github.event.head_commit.message, 'skip ci') && github.event_name == 'push' && github.ref == 'refs/heads/master'"
|
if: ${{ false }} # Disabled
|
||||||
|
# if: "!contains(github.event.head_commit.message, 'skip ci') && github.event_name == 'push' && github.ref == 'refs/heads/master'"
|
||||||
needs:
|
needs:
|
||||||
- linux
|
- native
|
||||||
- linux-static
|
runs-on: ubuntu-latest
|
||||||
runs-on: ubuntu-18.04
|
|
||||||
steps:
|
steps:
|
||||||
- name: Git checkout
|
- name: Git checkout
|
||||||
uses: actions/checkout@v1
|
uses: actions/checkout@v2
|
||||||
with:
|
with:
|
||||||
fetch-depth: 1
|
fetch-depth: 1
|
||||||
submodules: 'true'
|
submodules: 'true'
|
||||||
|
|
@ -366,9 +217,16 @@ jobs:
|
||||||
name: babashka-${{ steps.babashka-version.outputs.version }}-linux-static-amd64.zip
|
name: babashka-${{ steps.babashka-version.outputs.version }}-linux-static-amd64.zip
|
||||||
path: /tmp/release-static
|
path: /tmp/release-static
|
||||||
|
|
||||||
|
- name: Set up Docker Buildx
|
||||||
|
id: buildx
|
||||||
|
uses: docker/setup-buildx-action@v2
|
||||||
|
|
||||||
|
- name: Build uberjar
|
||||||
|
run: script/uberjar
|
||||||
|
|
||||||
- name: Docker build
|
- name: Docker build
|
||||||
env:
|
env:
|
||||||
DOCKERHUB_USER: "${{ secrets.DOCKERHUB_USER }}"
|
DOCKERHUB_USER: "${{ secrets.DOCKERHUB_USER }}"
|
||||||
DOCKERHUB_PASS: "${{ secrets.DOCKERHUB_PASS }}"
|
DOCKERHUB_PASS: "${{ secrets.DOCKERHUB_PASS }}"
|
||||||
run: |
|
PLATFORMS: linux/amd64,linux/arm64
|
||||||
.github/script/docker
|
run: java -jar ./target/babashka-$(cat resources/BABASHKA_VERSION)-standalone.jar .circleci/script/docker.clj
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue