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
8 changes: 4 additions & 4 deletions .github/workflows/soundness.yml
Original file line number Diff line number Diff line change
Expand Up @@ -106,7 +106,7 @@ jobs:
submodules: true
- name: Run documentation check
run: |
apt-get -qq update && apt-get -qq -y install curl yq
which curl yq || (apt -q update && apt -yq install curl yq)
curl -s https://raw.githubusercontent.com/swiftlang/github-workflows/refs/heads/main/.github/workflows/scripts/check-docs.sh | bash

unacceptable-language-check:
Expand Down Expand Up @@ -173,7 +173,7 @@ jobs:
run: git config --global --add safe.directory ${GITHUB_WORKSPACE}
- name: Run format check
run: |
apt-get -qq update && apt-get -qq -y install curl
which curl || (apt -q update && apt -yq install curl)
curl -s https://raw.githubusercontent.com/swiftlang/github-workflows/refs/heads/main/.github/workflows/scripts/check-swift-format.sh | bash

shell-check:
Expand All @@ -194,7 +194,7 @@ jobs:
run: git config --global --add safe.directory ${GITHUB_WORKSPACE}
- name: Run shellcheck
run: |
apt-get -qq update && apt-get -qq -y install shellcheck
which shellcheck || (apt -q update && apt -yq install shellcheck)
git ls-files -z '*.sh' | xargs -0 --no-run-if-empty shellcheck

yaml-lint-check:
Expand All @@ -210,7 +210,7 @@ jobs:
submodules: true
- name: Run yamllint
run: |
which yamllint >/dev/null || ( apt-get update && apt-get install -y yamllint )
which yamllint || (apt -q update && apt install -yq yamllint)
cd ${GITHUB_WORKSPACE}
if [ ! -f ".yamllint.yml" ]; then
echo "Downloading default yamllint config file"
Expand Down
5 changes: 3 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -65,10 +65,11 @@ exclude_swift_versions: "[{\"swift_version\": \"5.8\"}]"
```

Additionally, if your package requires additional installed packages, you can
use the `pre_build_command`:
use the `pre_build_command`. For example, to install a package called
`example`:

```yaml
pre_build_command: "apt-get update -y -q && apt-get install -y -q example"
pre_build_command: "which example || (apt update -q && apt install -yq example"
```

macOS and Windows platform support will be available soon.
Expand Down