Fork me on GitHub
#tools-deps
<
2021-12-04
>
Oliver George21:12:19

I'm learning about GitHub Actions at the moment. This https://github.com/tonsky/datascript/blob/master/.github/workflows/build_test.yml#L7 taught me that both java and lein are present on ubuntu-latest container. Mentioning as it might be worth petitioning to get the Clojure CLI tools on there too. Here's the details of what they have https://github.com/actions/virtual-environments/blob/main/images/linux/Ubuntu2004-README.md (a lot).

dharrigan21:12:06

I use that in my github actions to build our uberjars

dharrigan21:12:17

(which is fed into docker for containerisation)

dharrigan21:12:40

- name: Setup Clojure
        uses: DeLaGuardo/setup-clojure@master
        with:
          tools-deps: 'latest'

dharrigan21:12:55

- name: Build the UberJAR
        run: |
          cd ${{ env.APPLICATION }}
          clojure -T:build uberjar

dharrigan21:12:20

Perhaps that may be of help?

lread23:12:25

@U11EL3P9U this is probably also of help to CircleCI users, since CircleCI has deprecated their clojure convenience docker image.

Oliver George01:12:34

I'm using DeLaGuardo/setup-clojure for the first time. Seems great. Docker images are super useful too (esp. now I know about multi-stage builds). Perhaps these are superior in that we're in better control of what versions we're using. Less chance of stubbing toes on some old stable version of tools deps or feeling blocked when a bug isn't fixed or features slow to appear. Anyway, just wanted to get the topic on the radar of those who might care and be in a position to act.