This repository was archived by the owner on Jun 30, 2025. It is now read-only.
File tree Expand file tree Collapse file tree 6 files changed +19
-49
lines changed Expand file tree Collapse file tree 6 files changed +19
-49
lines changed Original file line number Diff line number Diff line change 20
20
uses : asdf-vm/actions/plugin-test@v4
21
21
with :
22
22
command : zig env
23
+ gitref : ${{ github.ref }}
Load Diff This file was deleted.
Original file line number Diff line number Diff line change 1
1
<div align =" center " >
2
2
3
- # asdf-zig [ ![ Build] ( https://github.com/jiacai2050/asdf-zig/actions/workflows/build.yml/badge.svg )] ( https://github.com/jiacai2050/asdf-zig/actions/workflows/build.yml ) [ ![ Lint ] ( https://github.com/jiacai2050/asdf-zig/actions/workflows/lint.yml/badge.svg )] ( https://github.com/jiacai2050/asdf-zig/actions/workflows/lint.yml )
3
+ # asdf-zig [ ![ Build] ( https://github.com/jiacai2050/asdf-zig/actions/workflows/build.yml/badge.svg )] ( https://github.com/jiacai2050/asdf-zig/actions/workflows/build.yml )
4
4
5
5
[ asdf-zig] ( https://github.com/jiacai2050/asdf-zig ) plugin for the [ asdf version manager] ( https://asdf-vm.com ) .
6
6
Original file line number Diff line number Diff line change @@ -11,3 +11,4 @@ release_file="${ASDF_DOWNLOAD_PATH}/zig-${ASDF_INSTALL_VERSION}.tar.xz"
11
11
12
12
" ${plugin_dir} /lib/utils.py" download " ${ASDF_INSTALL_VERSION} " " ${release_file} "
13
13
tar -xzf " $release_file " -C " $ASDF_DOWNLOAD_PATH " --strip-components=1
14
+ rm " $release_file "
Original file line number Diff line number Diff line change 3
3
set -euo pipefail
4
4
5
5
install_version () {
6
- local install_type=" $1 "
7
- local version=" $2 "
8
- local install_path=" $3 "
6
+ local install_type=" $1 "
7
+ local version=" $2 "
8
+ local install_path=" $3 "
9
9
10
- if [ " $install_type " != " version" ]; then
11
- fail " asdf-zig supports release installs only"
12
- fi
10
+ if [ " $install_type " != " version" ]; then
11
+ fail " asdf-zig supports release installs only"
12
+ fi
13
13
14
- (
15
- mkdir -p " $install_path "
16
- cp -r " $ASDF_DOWNLOAD_PATH " /* " $install_path "
14
+ (
15
+ mkdir -p " $install_path "
16
+ cp -r " $ASDF_DOWNLOAD_PATH " /* " $install_path "
17
17
mkdir -p " $install_path /bin"
18
18
mv " $install_path /zig" " $install_path /bin/zig"
19
19
20
- local tool_cmd=" zig"
21
- if ! test -x " $install_path /bin/$tool_cmd " ; then
20
+ local tool_cmd=" zig"
21
+ if ! test -x " $install_path /bin/$tool_cmd " ; then
22
22
echo " Expected $install_path /bin/zig to be executable."
23
23
exit 1
24
24
fi
25
25
26
- echo " zig $version installation was successful!"
27
- ) || (
28
- rm -rf " $install_path "
29
- fail " An error occurred while installing $TOOL_NAME $version ."
30
- )
26
+ echo " zig $version installation was successful!"
27
+ ) || (
28
+ rm -rf " $install_path "
29
+ fail " An error occurred while installing $TOOL_NAME $version ."
30
+ )
31
31
}
32
32
33
33
install_version " $ASDF_INSTALL_TYPE " " $ASDF_INSTALL_VERSION " " $ASDF_INSTALL_PATH "
Load Diff This file was deleted.
You can’t perform that action at this time.
0 commit comments