From 5c1f698b529c19bd4c67e45961149ce7d90bc778 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Martin=20Wo=CC=88ginger?= Date: Tue, 26 Mar 2024 21:52:15 +0100 Subject: [PATCH] add `asdf` or `mise` support @see https://www.tzeyiing.com/posts/2024/02/13/setup-beam-with-asdf-tool-version link to version managers: https://mise.jdx.dev or https://asdf-vm.com --- .github/workflows/cd.yml | 8 ++------ .tool-versions | 2 ++ 2 files changed, 4 insertions(+), 6 deletions(-) create mode 100644 .tool-versions diff --git a/.github/workflows/cd.yml b/.github/workflows/cd.yml index c731e57f..13600f18 100644 --- a/.github/workflows/cd.yml +++ b/.github/workflows/cd.yml @@ -4,10 +4,6 @@ on: push: branches: [main] -env: - OTP_VERSION: "26" - ELIXIR_VERSION: "1.15" - concurrency: group: ${{ github.workflow }}-${{ github.ref }} cancel-in-progress: true @@ -36,8 +32,8 @@ jobs: - name: Setup Elixir uses: erlef/setup-beam@v1 with: - otp-version: ${{ env.OTP_VERSION }} - elixir-version: ${{ env.ELIXIR_VERSION }} + version-file: .tool-versions + version-type: strict - name: Checkout Repository uses: actions/checkout@v4 diff --git a/.tool-versions b/.tool-versions new file mode 100644 index 00000000..ca154e55 --- /dev/null +++ b/.tool-versions @@ -0,0 +1,2 @@ +elixir 1.15.7-otp-26 +erlang 26.0.2