chore(release): Release 0.8.5 #1059
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: main | |
on: [push, pull_request] | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
strategy: | |
matrix: | |
java: [ '8', '11', '17', '21'] | |
name: Java ${{ matrix.java }} | |
steps: | |
- uses: actions/checkout@v4 | |
- name: Setup Java | |
uses: actions/setup-java@v4 | |
with: | |
java-version: ${{ matrix.java }} | |
distribution: 'temurin' | |
architecture: x64 | |
- name: Cache m2 repository | |
uses: actions/cache@v4 | |
with: | |
path: ~/.m2 | |
key: ${{ runner.os }}-m2-${{ hashFiles('**/project.clj') }} | |
restore-keys: | | |
${{ runner.os }}-m2- | |
- name: Install dependencies | |
run: lein deps | |
- name: Run lein check | |
if: matrix.java == '11' | |
run: >- | |
! lein update-in :global-vars assoc '*unchecked-math*' :warn-on-boxed -- check 2>&1 > /dev/null | | |
grep cljam | | |
sed -E 's/^Reflection warning, ([^:]+):([0-9]+):([0-9]+) - (.*)$/::warning file=\1,line=\2,col=\3::\4/;s/^Boxed math warning, ([^:]+):([0-9]+):([0-9]+) - (.*)$/::warning file=\1,line=\2,col=\3::\4/' | | |
grep '::warning' | |
- name: Run tests | |
run: | | |
lein with-profile +dev:+1.8:+1.9 test | |
lein with-profile dev bin | |
target/cljam version | |
deploy: | |
needs: [build] | |
if: github.event_name == 'push' && github.ref == 'refs/heads/master' | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
- name: Setup Java | |
uses: actions/setup-java@v4 | |
with: | |
java-version: '8' | |
distribution: 'temurin' | |
architecture: x64 | |
- name: Deploy | |
env: | |
CLOJARS_USERNAME: ${{ secrets.CLOJARS_USERNAME }} | |
CLOJARS_PASSWORD: ${{ secrets.CLOJARS_PASSWORD }} | |
run: ./deploy-snapshot.sh |