-
Notifications
You must be signed in to change notification settings - Fork 133
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Browse files
Browse the repository at this point in the history
* Refactored 'configure' and 'make' ices * New 'build' ice sets 'configure' and 'make ices if no flags are needed. * New 'cmake' ice will build/install using 'cmake' * Delete command now handles programs using 'make' and 'cmake' ices * Setting `$ZINIT[DEBUG]` enables debug logging (i.e., `+zi-log "{dbg} message ..."`)
- Loading branch information
1 parent
e2d477c
commit 22e66db
Showing
13 changed files
with
630 additions
and
513 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,10 +1,11 @@ | ||
name: Unit tests | ||
name: Unit Tests | ||
|
||
concurrency: | ||
group: ${{ github.workflow }}-${{ github.ref }} | ||
cancel-in-progress: true | ||
|
||
env: | ||
HOMEBREW_NO_INSTALLED_DEPENDENTS_CHECK: 1 | ||
TERM: xterm-256color | ||
|
||
on: | ||
|
@@ -39,40 +40,62 @@ jobs: | |
id: setup-homebrew | ||
uses: Homebrew/actions/setup-homebrew@master | ||
|
||
# - name: "install musl" | ||
# if: runner.os == 'Linux' | ||
# run: sudo apt-get install build-essential curl file gcc gcc-multilib glibc-source libc6 libc6-dev unzip xz-utils zsh | ||
- name: "install musl" | ||
if: runner.os == 'Linux' | ||
run: | | ||
sudo apt-get update --yes | ||
sudo apt-get install --no-install-recommends --yes \ | ||
autoconf automake autotools-dev \ | ||
build-essential byacc\ | ||
file \ | ||
gcc gettext glibc-source grep \ | ||
libc6 libc6-dev libevent-dev libncurses5-dev libncursesw5-dev libtool libuvc0 lua5.1 \ | ||
m4 \ | ||
ninja-build \ | ||
pkg-config \ | ||
xz-utils | ||
- name: "install dependencies" | ||
id: install-deps | ||
run: | | ||
export HOMEBREW_NO_INSTALLED_DEPENDENTS_CHECK=1 | ||
brew install --force --overwrite gnu-sed coreutils unzip xz zsh | ||
brew install --force --overwrite autoconf automake binutils byacc cmake coreutils curl gettext gnu-sed libevent libtool libuv lua [email protected] make ncurses ninja parallel pkg-config texinfo unzip xz zsh | ||
brew link --force --overwrite ncurses | ||
- name: "install zunit" | ||
id: install-zunit | ||
run: | | ||
mkdir -p "$HOME/.local/bin" && echo "$HOME/.local/bin" >> $GITHUB_PATH | ||
git clone --depth 1 https://github.com/zdharma-continuum/zunit; cd ./zunit | ||
zsh -c -l './build.zsh' && sudo chmod u+x ./zunit && cp ./zunit "$HOME/.local/bin/" | ||
# - name: disable secssessment system policy security | ||
# run: sudo spctl --master-disable | ||
|
||
zsh -l -c './build.zsh' && sudo chmod u+x ./zunit && cp ./zunit "$HOME/.local/bin/" | ||
- name: "gh-r" | ||
shell: zsh {0} | ||
run: $HOME/.local/bin/zunit run --verbose tests/gh-r.zunit | ||
|
||
- name: "annexes" | ||
run: zunit run tests/annexes.zunit | ||
|
||
- name: "commands" | ||
run: zunit run tests/commands.zunit | ||
|
||
- name: "gh-r" | ||
run: zunit run --fail-fast --verbose tests/gh-r.zunit | ||
|
||
run: zunit run tests/gh-r.zunit | ||
- name: "ices" | ||
run: zunit run tests/ices.zunit | ||
|
||
- name: "plugins" | ||
run: zunit run tests/plugins.zunit | ||
|
||
- name: "snippets" | ||
run: zunit run tests/snippets.zunit | ||
|
||
# - name: Run tests | ||
# shell: zsh {0} | ||
# run: | | ||
# command -p ls -1 ./tests/*zunit \ | ||
# | parallel \ | ||
# --jobs=2 \ | ||
# --keep-order \ | ||
# --line-buffer \ | ||
# $HOME/.local/bin/zunit run |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -4,4 +4,4 @@ directories: | |
support: tests/_support | ||
tests: tests | ||
fail_fast: false | ||
verbose: false | ||
verbose: true |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.