Skip to content

Commit c29e61f

Browse files
committed
Update actions
1 parent f735594 commit c29e61f

File tree

4 files changed

+28
-19
lines changed

4 files changed

+28
-19
lines changed

.github/workflows/linux.yml

+14-9
Original file line numberDiff line numberDiff line change
@@ -9,35 +9,40 @@ jobs:
99
strategy:
1010
matrix:
1111
pair:
12-
- otp-version: '27.0'
13-
elixir-version: '1.17.2'
12+
- otp-version: '27.3'
13+
elixir-version: '1.18.3'
14+
- otp-version: '27.3'
15+
elixir-version: '1.17.3'
1416
- otp-version: '26.2'
1517
elixir-version: '1.16.3'
1618
- otp-version: '25.3'
17-
elixir-version: '1.15.2'
19+
elixir-version: '1.15.8'
1820
- otp-version: '24.3'
1921
elixir-version: '1.14.5'
2022
steps:
21-
- uses: actions/checkout@v1
23+
- uses: actions/checkout@v4
2224
- uses: erlef/setup-beam@v1
2325
with:
2426
otp-version: ${{matrix.pair.otp-version}}
2527
elixir-version: ${{matrix.pair.elixir-version}}
2628

27-
- uses: actions/cache@v1
29+
- uses: actions/cache@v3
2830
id: deps-cache
2931
with:
3032
path: deps
31-
key: ${{ runner.os }}-mix-${{ matrix.otp }}-${{ matrix.elixir }}-${{ hashFiles(format('{0}{1}', github.workspace, '/mix.lock')) }}
33+
key: ${{ runner.os }}-mix-${{ matrix.pair.otp-version }}-${{ matrix.pair.elixir-version }}-${{ hashFiles('/mix.lock') }}
3234

3335
- name: Install dependencies
3436
run: mix deps.get
3537

36-
- uses: actions/cache@v1
38+
- uses: actions/cache@v3
3739
id: build-cache
3840
with:
3941
path: _build
40-
key: ${{ runner.os }}-build-${{ matrix.otp }}-${{ matrix.elixir }}-${{ hashFiles(format('{0}{1}', github.workspace, '/mix.lock')) }}
42+
key: ${{ runner.os }}-build-${{ matrix.pair.otp-version }}-${{ matrix.elixir-version }}-${{ hashFiles('/mix.lock') }}
43+
44+
- name: Compile base
45+
run: mix compile
4146

4247
- name: Compile base
4348
run: mix compile
@@ -46,7 +51,7 @@ jobs:
4651
id: zig-version
4752
run: mix eval "IO.puts(Zig.version())"
4853

49-
- uses: actions/cache@v1
54+
- uses: actions/cache@v3
5055
id: zig-cache
5156
with:
5257
path: zig

.github/workflows/macos.yml

+3-3
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ jobs:
55
runs-on: macos-latest
66
name: MacOS-latest-latest
77
steps:
8-
- uses: actions/checkout@v2
8+
- uses: actions/checkout@v4
99

1010
- name: update-brew
1111
run: brew update
@@ -23,7 +23,7 @@ jobs:
2323
id: elixir-version
2424
run: elixir --version | tail -n 1 | awk '{ print $2 }'
2525

26-
- uses: actions/cache@v1
26+
- uses: actions/cache@v3
2727
id: deps-cache
2828
with:
2929
path: deps
@@ -32,7 +32,7 @@ jobs:
3232
- name: Install dependencies
3333
run: mix deps.get
3434

35-
- uses: actions/cache@v1
35+
- uses: actions/cache@v3
3636
id: build-cache
3737
with:
3838
path: _build

installer/mix.exs

+1-1
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ end
66
defmodule Zig.Get.MixProject do
77
use Mix.Project
88

9-
@version "0.13.1"
9+
@version "0.14.0"
1010
@scm_url "https://github.com/e-xyza/zigler"
1111

1212
@elixir_requirement "~> 1.14"

installer/mix.tasks/zig.get.ex

+10-6
Original file line numberDiff line numberDiff line change
@@ -18,14 +18,16 @@ defmodule Mix.Tasks.Zig.Get do
1818

1919
@shortdoc "Obtains the Zig compiler toolchain"
2020

21+
@default_version "0.14.0"
22+
2123
@moduledoc """
2224
obtains the Zig compiler toolchain
2325
24-
$ mix zig.get [--version VERSION] [--from FROM] [--os OS] [--arch ARCH]
26+
$ mix zig.get [--version VERSION] [--from FROM] [--os OS] [--arch ARCH] [other options]
2527
2628
the zigler compiler will be downloaded to ZIG_ARCHIVE_PATH/VERSION
2729
28-
if unspecified, VERSION defaults to the major/minor version of zig.get
30+
if unspecified, VERSION defaults to #{@default_version}.
2931
3032
if FROM is specified, will use the FROM file instead of getting from the internet.
3133
@@ -39,9 +41,13 @@ defmodule Mix.Tasks.Zig.Get do
3941
4042
- `TAR_COMMAND`: path to a tar executable that is equivalent to gnu tar.
4143
only useful for non-windows architectures.
42-
- `NO_VERIFY`: disable signature verification of the downloaded file.
43-
Not recommended.
4444
- `ZIG_ARCHIVE_PATH`: path to desired directory to achive the zig compiler toolchain.
45+
46+
### other options
47+
48+
- `--force` overwrites the existing installation if it exists.
49+
- `--disable-verify` disables the hash verification of the downloaded file.
50+
it's possible that the manifest at `https://ziglang.org/download/index.json`
4551
"""
4652

4753
defstruct ~w(version path arch os url file verify hash force)a
@@ -97,8 +103,6 @@ defmodule Mix.Tasks.Zig.Get do
97103
end
98104
end
99105

100-
@default_version "0.13.0"
101-
102106
defp defaults do
103107
{os, arch} = Zig.Get.os_info()
104108

0 commit comments

Comments
 (0)