From b52b84a6f9811c8d45d46211ee70983c4e21b4f6 Mon Sep 17 00:00:00 2001 From: Daniel Rudnitski Date: Mon, 19 Aug 2024 21:32:48 -0400 Subject: [PATCH] chore(ci): use separate action for zig --- .github/workflows/ci.yml | 9 +++++++-- .github/workflows/publish.yml | 4 +++- 2 files changed, 10 insertions(+), 3 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 6e42913..a9edd02 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -18,13 +18,16 @@ jobs: - pair: elixir: "1.14" otp: "25.3" + zig: "0.13.0" - pair: elixir: "1.17" otp: "27.0" + zig: "0.13.0" steps: - uses: actions/checkout@v4 - name: Generate .tool-versions file run: | + echo "zig ${{ matrix.pair.zig }}" >> .tool-versions echo "elixir ${{ matrix.pair.elixir }}" >> .tool-versions echo "erlang ${{ matrix.pair.otp }}" >> .tool-versions cp .tool-versions ~/. @@ -33,7 +36,6 @@ jobs: - name: Install Hex package manager run: mix local.hex --force && mix local.rebar --force - run: mix deps.get - - run: mix zig.get - uses: actions/cache@v4 with: path: | @@ -69,6 +71,10 @@ jobs: - name: Setup Kerberos environment and initialize configuration run: sudo ./test/support/files/setup_kerberos.sh + - uses: goto-bus-stop/setup-zig@v2 + with: + version: 0.13.0 + - uses: erlef/setup-beam@v1 with: otp-version: ${{matrix.pair.otp}} @@ -81,7 +87,6 @@ jobs: key: mix-deps-${{ hashFiles('**/mix.lock') }} - run: mix deps.get - - run: mix zig.get - run: mix format --check-formatted if: ${{ matrix.lint }} diff --git a/.github/workflows/publish.yml b/.github/workflows/publish.yml index 98eb0b6..f54fb34 100644 --- a/.github/workflows/publish.yml +++ b/.github/workflows/publish.yml @@ -18,8 +18,10 @@ jobs: with: otp-version: "27.0" elixir-version: "1.17" + - uses: goto-bus-stop/setup-zig@v2 + with: + version: 0.13.0 - run: mix deps.get - - run: mix zig.get - name: Publish Documentation run: mix hex.publish docs --yes if: github.event_name == 'push' && github.ref == 'refs/heads/master'