Skip to content

Commit

Permalink
chore(ci): use separate action for zig
Browse files Browse the repository at this point in the history
  • Loading branch information
danielrudn committed Aug 20, 2024
1 parent 4b57988 commit b52b84a
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 3 deletions.
9 changes: 7 additions & 2 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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 ~/.
Expand All @@ -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: |
Expand Down Expand Up @@ -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}}
Expand All @@ -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 }}
Expand Down
4 changes: 3 additions & 1 deletion .github/workflows/publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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'
Expand Down

0 comments on commit b52b84a

Please sign in to comment.