Skip to content
This repository was archived by the owner on Jun 30, 2025. It is now read-only.

Commit c28cc71

Browse files
committed
add plugin test
1 parent d341935 commit c28cc71

File tree

5 files changed

+25
-26
lines changed

5 files changed

+25
-26
lines changed

.editorconfig

Lines changed: 0 additions & 12 deletions
This file was deleted.

.github/workflows/build.yml

Lines changed: 19 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -6,15 +6,14 @@ on:
66
- main
77
pull_request:
88

9-
env:
10-
ASDF_DOWNLOAD_PATH: /tmp/asdf-download
11-
ASDF_INSTALL_VERSION: 0.14.1
12-
ASDF_INSTALL_TYPE: version
13-
ASDF_INSTALL_PATH: /tmp/asdf-install
149

1510
jobs:
16-
plugin_test:
17-
name: asdf plugin test
11+
script-test:
12+
env:
13+
ASDF_DOWNLOAD_PATH: /tmp/asdf-download
14+
ASDF_INSTALL_VERSION: 0.14.1
15+
ASDF_INSTALL_TYPE: version
16+
ASDF_INSTALL_PATH: /tmp/asdf-install
1817
strategy:
1918
matrix:
2019
os:
@@ -29,3 +28,16 @@ jobs:
2928
bin/install
3029
- run: |
3130
${ASDF_INSTALL_PATH}/bin/zig env
31+
32+
plugin-test:
33+
strategy:
34+
matrix:
35+
os:
36+
- ubuntu-latest
37+
- macos-latest
38+
runs-on: ${{ matrix.os }}
39+
steps:
40+
- name: asdf_plugin_test
41+
uses: asdf-vm/actions/plugin-test@v3
42+
with:
43+
command: zig env

.tool-versions

Lines changed: 0 additions & 2 deletions
This file was deleted.

README.md

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
<div align="center">
22

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)
3+
# asdf-zig [![Build](https://github.com/zigcc/asdf-zig/actions/workflows/build.yml/badge.svg)](https://github.com/zigcc/asdf-zig/actions/workflows/build.yml)
44

5-
[asdf-zig](https://github.com/jiacai2050/asdf-zig) plugin for the [asdf version manager](https://asdf-vm.com).
5+
[asdf-zig](https://github.com/zigcc/asdf-zig) plugin for the [asdf version manager](https://asdf-vm.com).
66

77
</div>
88

@@ -16,13 +16,14 @@
1616
# Dependencies
1717

1818
- `bash`, `python3`, `tar`, and [POSIX utilities](https://pubs.opengroup.org/onlinepubs/9699919799/idx/utilities.html).
19+
- asdf 0.16+
1920

2021
# Install
2122

2223
Plugin:
2324

2425
```shell
25-
asdf plugin add zig https://github.com/jiacai2050/asdf-zig.git
26+
asdf plugin add zig https://github.com/zigcc/asdf-zig.git
2627
```
2728

2829
asdf-zig:
@@ -46,4 +47,4 @@ install & manage versions.
4647

4748
# License
4849

49-
See [LICENSE](LICENSE) © [jiacai2050](https://github.com/jiacai2050/)
50+
See [LICENSE](LICENSE) © [zigcc](https://github.com/zigcc/)

lib/utils.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -81,7 +81,7 @@ def download_tarball(url, out_file, expected_shasum):
8181
except Exception as e:
8282
print(f"Current mirror failed, try next. err:{e}")
8383

84-
# All mirror failed, fallback to original url
84+
# All mirrors failed, fallback to original url
8585
download_and_check(url, out_file, expected_shasum)
8686

8787

0 commit comments

Comments
 (0)