Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 6 additions & 1 deletion .clang-format
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,12 @@
#
# 1) lines can be up to 100 chars long rather than 80, and
# 2) use a four space indent rather than two spaces.
# 3) for C files, put * on the right.
#
BasedOnStyle: Google
---
Language: C
BasedOnStyle: LLVM
ColumnLimit: 100
IndentWidth: 4
PointerAlignment: Right
---
2 changes: 0 additions & 2 deletions .github/actions/install-dependencies/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -30,9 +30,7 @@ runs:
sudo apt install \
diffutils $(: "for diff") \
git \
gettext \
less \
$(if ${{ inputs.include_pcre }}; then echo libpcre2-dev; fi) \
python3-pexpect \
tmux \
wget \
Expand Down
20 changes: 11 additions & 9 deletions build_tools/update-dependencies.sh
Original file line number Diff line number Diff line change
Expand Up @@ -18,21 +18,23 @@ update_gh_action() {
[ -n "$version" ]
tag_oid=$(git ls-remote "https://github.com/$repo.git" "refs/tags/$version" | cut -f1)
[ -n "$tag_oid" ]
find .github/workflows -name '*.yml' -type f -exec \
sed -i "s|uses: $repo@\S\+\( \+#.*\)\?|\
uses: $repo@$tag_oid # $version, build_tools/update-dependencies.sh|g" {} +
workflow_files=$(find .github/workflows -name '*.yml' -type f)
# shellcheck disable=2086
grep "\buses: $repo@\S\+\( \+#.*\)\?" $workflow_files
# shellcheck disable=2086
sed -i "s|\buses: $repo@\S\+\( \+#.*\)\?|\
uses: $repo@$tag_oid # $version, build_tools/update-dependencies.sh|g" \
$workflow_files
}

update_gh_action actions/checkout
update_gh_action actions/download-artifact
update_gh_action actions/github-script
update_gh_action actions/upload-artifact
update_gh_action actions/download-artifact
update_gh_action docker/login-action
update_gh_action docker/build-push-action
update_gh_action docker/metadata-action
update_gh_action EmbarkStudios/cargo-deny-action
update_gh_action dessant/lock-threads
update_gh_action softprops/action-gh-release
update_gh_action EmbarkStudios/cargo-deny-action
update_gh_action msys2/setup-msys2
update_gh_action softprops/action-gh-release

updatecli "${@:-apply}"

Expand Down
6 changes: 3 additions & 3 deletions docker/docker_run_tests.sh
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ export DOCKER_BUILDKIT=1
set -e

# Get fish source directory.
FISH_SRC_DIR=$(cd "$( dirname "$0" )"/.. >/dev/null && pwd)
workspace_root=$(cd "$( dirname "$0" )"/.. >/dev/null && pwd)

# Parse args.
while [ $# -gt 1 ]; do
Expand Down Expand Up @@ -51,11 +51,11 @@ IMG_TAGNAME="ghcr.io/fish-shell/fish-ci/$(basename -s .Dockerfile "$DOCKERFILE")
docker build \
-t "$IMG_TAGNAME" \
-f "$DOCKERFILE" \
"$FISH_SRC_DIR"/docker/context/
"$workspace_root"/docker/context/

# Run tests in it, allowing them to fail without failing this script.
# shellcheck disable=SC2086 # $DOCKER_EXTRA_ARGS should have globbing and splitting applied.
docker run -it \
--mount type=bind,source="$FISH_SRC_DIR",target=/fish-source,readonly \
--mount type=bind,source="$workspace_root",target=/fish-source,readonly \
$DOCKER_EXTRA_ARGS \
"$IMG_TAGNAME"
1 change: 0 additions & 1 deletion docker/ubuntu-latest-lts.Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,6 @@ ENV LC_ALL=C.UTF-8

RUN apt-get update \
&& apt-get -y install --no-install-recommends \
cmake ninja-build \
build-essential \
ca-certificates \
clang \
Expand Down
6 changes: 5 additions & 1 deletion tests/checks/cd.fish
Original file line number Diff line number Diff line change
Expand Up @@ -364,7 +364,11 @@ complete -C'cd .'
# NetBSD 10 does not support it.
# Cygwin/MSYS does not support it when using ACL. And without ACL, a directory
# cannot be made unreadable, making the test pointless. So either way, skip it
if test (uname) = NetBSD || __fish_is_cygwin || { test (uname) = Darwin && test (sysctl kern.osproductversion 2>/dev/null | string match -r \\d+; or echo 10) -lt 12 }
if test (uname) = NetBSD || __fish_is_cygwin ||
{ test (uname) = Darwin &&
test \
(sysctl kern.osproductversion 2>/dev/null | string match -r \\d+; or echo 10) \
-lt 12 }
# Not supported. Satisfy the CHECKs below.
echo fake/a
echo fake/a/b
Expand Down
Loading