Skip to content

Commit b694dac

Browse files
committed
ci: add xcsift filtering and fix shell quoting
1 parent 23728de commit b694dac

4 files changed

Lines changed: 17 additions & 12 deletions

File tree

.github/workflows/ci.yml

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -95,12 +95,17 @@ jobs:
9595
restore-keys: |
9696
${{ runner.os }}-spm-
9797
98+
- uses: jdx/mise-action@v3
99+
with:
100+
experimental: true
101+
github_token: ${{ secrets.GITHUB_TOKEN }}
102+
98103
- name: Show Swift version
99104
run: swift --version
100105

101106
- name: Build
102-
run: swift build
107+
run: swift build 2>&1 | xcsift
103108

104109
- name: Run tests
105110
# Use --num-workers 1 to avoid memory corruption with libpng on Linux
106-
run: swift test --parallel --num-workers 1
111+
run: swift test --parallel --num-workers 1 2>&1 | xcsift

.github/workflows/release.yml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -105,7 +105,7 @@ jobs:
105105
cp -r .build/${{ matrix.build-path }}/exfig_FlutterExport.resources dist/
106106
cp -r .build/${{ matrix.build-path }}/exfig_WebExport.resources dist/
107107
cp LICENSE dist/
108-
cd dist && tar -czf ../${{ matrix.archive-name }}.tar.gz *
108+
cd dist && tar -czf ../${{ matrix.archive-name }}.tar.gz -- *
109109
110110
- name: Upload artifact
111111
uses: actions/upload-artifact@v4
@@ -190,7 +190,7 @@ jobs:
190190
steps:
191191
- name: Get version from tag
192192
id: version
193-
run: echo "version=${GITHUB_REF#refs/tags/v}" >> $GITHUB_OUTPUT
193+
run: echo "version=${GITHUB_REF#refs/tags/v}" >> "$GITHUB_OUTPUT"
194194

195195
- name: Download release assets and calculate SHA256
196196
id: sha
@@ -199,11 +199,11 @@ jobs:
199199
200200
curl -sL "https://github.com/alexey1312/ExFig/releases/download/v${VERSION}/exfig-macos.zip" -o exfig-macos.zip
201201
MACOS_SHA=$(sha256sum exfig-macos.zip | cut -d' ' -f1)
202-
echo "macos=${MACOS_SHA}" >> $GITHUB_OUTPUT
202+
echo "macos=${MACOS_SHA}" >> "$GITHUB_OUTPUT"
203203
204204
curl -sL "https://github.com/alexey1312/ExFig/releases/download/v${VERSION}/exfig-linux-x64.tar.gz" -o exfig-linux.tar.gz
205205
LINUX_SHA=$(sha256sum exfig-linux.tar.gz | cut -d' ' -f1)
206-
echo "linux=${LINUX_SHA}" >> $GITHUB_OUTPUT
206+
echo "linux=${LINUX_SHA}" >> "$GITHUB_OUTPUT"
207207
208208
- name: Checkout Homebrew tap
209209
uses: actions/checkout@v6

mise.lock

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -74,9 +74,9 @@ backend = "aqua:realm/SwiftLint"
7474
"platforms.macos-x64" = { checksum = "sha256:79625bece2716395d955d34a5993e6c948ef57d0256abe5538aaab82f2ad6b68", url = "https://github.com/realm/SwiftLint/releases/download/0.62.2/portable_swiftlint.zip"}
7575

7676
[[tools.xcsift]]
77-
version = "1.0.17"
77+
version = "1.0.18"
7878
backend = "github:ldomaradzki/xcsift"
79-
"platforms.linux-arm64" = { checksum = "sha256:77e77f79bc2f3304e4981b69e7eb436b672683550308dbda8b01c6bd67ddd4de", url = "https://github.com/ldomaradzki/xcsift/releases/download/v1.0.17/xcsift-v1.0.17-linux-x64.tar.gz", url_api = "https://api.github.com/repos/ldomaradzki/xcsift/releases/assets/331301592"}
80-
"platforms.linux-x64" = { checksum = "sha256:77e77f79bc2f3304e4981b69e7eb436b672683550308dbda8b01c6bd67ddd4de", url = "https://github.com/ldomaradzki/xcsift/releases/download/v1.0.17/xcsift-v1.0.17-linux-x64.tar.gz", url_api = "https://api.github.com/repos/ldomaradzki/xcsift/releases/assets/331301592"}
81-
"platforms.macos-arm64" = { checksum = "sha256:945e45078683b7c3e56ccf81c6130438ebf4c030dde34b78d094b69756c9d927", url = "https://github.com/ldomaradzki/xcsift/releases/download/v1.0.17/xcsift-v1.0.17-macos-arm64.tar.gz", url_api = "https://api.github.com/repos/ldomaradzki/xcsift/releases/assets/331301591"}
82-
"platforms.macos-x64" = { checksum = "sha256:945e45078683b7c3e56ccf81c6130438ebf4c030dde34b78d094b69756c9d927", url = "https://github.com/ldomaradzki/xcsift/releases/download/v1.0.17/xcsift-v1.0.17-macos-arm64.tar.gz", url_api = "https://api.github.com/repos/ldomaradzki/xcsift/releases/assets/331301591"}
79+
"platforms.linux-arm64" = { checksum = "sha256:930bb369618ad57402d6f5417654280c78bc11613e7154273a1bc8c88e210561", url = "https://github.com/ldomaradzki/xcsift/releases/download/v1.0.18/xcsift-v1.0.18-linux-x64.tar.gz", url_api = "https://api.github.com/repos/ldomaradzki/xcsift/releases/assets/332772906"}
80+
"platforms.linux-x64" = { checksum = "sha256:930bb369618ad57402d6f5417654280c78bc11613e7154273a1bc8c88e210561", url = "https://github.com/ldomaradzki/xcsift/releases/download/v1.0.18/xcsift-v1.0.18-linux-x64.tar.gz", url_api = "https://api.github.com/repos/ldomaradzki/xcsift/releases/assets/332772906"}
81+
"platforms.macos-arm64" = { checksum = "sha256:0d511d3b1a8749fe1157ed2bdb413cd4fb7ad803d037b967a3768f826401ae4d", url = "https://github.com/ldomaradzki/xcsift/releases/download/v1.0.18/xcsift-v1.0.18-macos-arm64.tar.gz", url_api = "https://api.github.com/repos/ldomaradzki/xcsift/releases/assets/332772905"}
82+
"platforms.macos-x64" = { checksum = "sha256:0d511d3b1a8749fe1157ed2bdb413cd4fb7ad803d037b967a3768f826401ae4d", url = "https://github.com/ldomaradzki/xcsift/releases/download/v1.0.18/xcsift-v1.0.18-macos-arm64.tar.gz", url_api = "https://api.github.com/repos/ldomaradzki/xcsift/releases/assets/332772905"}

mise.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ legacy_version_file = false
2626
# --- Swift Development ---
2727
"github:nicklockwood/SwiftFormat" = { version = "0.58.7", asset_pattern = "swiftformat.zip" } # Swift code formatting
2828
swiftlint = "0.62.2" # Swift linting
29-
xcsift = "1.0.17" # xcodebuild output filtering
29+
xcsift = "1.0.18" # xcodebuild output filtering
3030

3131
# --- Documentation & Formatting ---
3232
dprint = "0.50.2" # MD/JSON/YAML formatting (Rust, fast)

0 commit comments

Comments
 (0)