Skip to content

Commit d0040ba

Browse files
s00dclaude
andcommitted
ci: drop removed tauri-action inputs, refresh stale workflows
- build: remove appName/includeUpdaterJson/includeDebug/includeRelease (gone in tauri-action v1), signing key via step env, rust-cache, frozen lockfile, retry uploads - update-homebrew-cask: no setup-node (npm cache needs the deleted package-lock.json), read version with jq, checkout v7 - docs: current checkout/setup-node/pnpm/pages actions, pnpm cache via setup-node - arm: same apt mirror fix, no Tauri v1 webkit Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
1 parent 7f6a3cf commit d0040ba

4 files changed

Lines changed: 33 additions & 76 deletions

File tree

‎.github/workflows/arm.yml‎

Lines changed: 9 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -39,10 +39,17 @@ jobs:
3939
with:
4040
targets: ${{ matrix.target }}
4141

42+
# azure.archive.ubuntu.com на раннерах периодически зависает на скачивании
4243
- name: Install dependencies
44+
timeout-minutes: 15
4345
run: |
46+
for f in /etc/apt/apt-mirrors.txt /etc/apt/sources.list /etc/apt/sources.list.d/*.sources; do
47+
[ -f "$f" ] && sudo sed -i 's|http://azure.archive.ubuntu.com|http://archive.ubuntu.com|g' "$f"
48+
done
49+
printf 'Acquire::Retries "5";\nAcquire::http::Timeout "30";\nAcquire::https::Timeout "30";\n' \
50+
| sudo tee /etc/apt/apt.conf.d/80-retries > /dev/null
4451
sudo apt-get update
45-
sudo apt-get install -y libwebkit2gtk-4.1-dev libwebkit2gtk-4.0-dev libappindicator3-dev librsvg2-dev patchelf libssl-dev gcc-aarch64-linux-gnu gcc-arm-linux-gnueabihf
52+
sudo apt-get install -y libwebkit2gtk-4.1-dev libappindicator3-dev librsvg2-dev patchelf libssl-dev gcc-aarch64-linux-gnu gcc-arm-linux-gnueabihf
4653
4754
- uses: actions/cache@v6
4855
with:
@@ -56,7 +63,7 @@ jobs:
5663
key: ${{ runner.os }}-arm-${{ matrix.target }}-${{ hashFiles('**/Cargo.lock') }}
5764

5865
- name: Install frontend dependencies
59-
run: pnpm install
66+
run: pnpm install --frozen-lockfile
6067

6168
- name: Build Tauri app
6269
env:

‎.github/workflows/build.yml‎

Lines changed: 8 additions & 32 deletions
Original file line numberDiff line numberDiff line change
@@ -13,16 +13,12 @@ jobs:
1313
include:
1414
- platform: 'macos-latest' # Universal build for both ARM and Intel Macs
1515
args: '--target universal-apple-darwin'
16-
os: 'macos'
1716
- platform: 'ubuntu-22.04' # for Tauri v1 you could replace this with ubuntu-20.04
1817
args: ''
19-
os: 'linux'
2018
- platform: 'windows-latest'
2119
args: ''
22-
os: 'windows'
2320
- platform: 'windows-latest'
2421
args: '--target i686-pc-windows-msvc'
25-
suffix: 'windows'
2622

2723
runs-on: ${{ matrix.platform }}
2824
steps:
@@ -39,34 +35,17 @@ jobs:
3935
node-version: 22
4036
cache: 'pnpm'
4137

42-
- uses: actions/cache@v6
43-
with:
44-
path: |
45-
~/.cargo/bin/
46-
~/.cargo/registry/index/
47-
~/.cargo/registry/cache/
48-
~/.cargo/git/db/
49-
target/
50-
src-tauri/target/
51-
C:\Users\runneradmin\.cargo\registry\index\
52-
C:\Users\runneradmin\.cargo\registry\cache\
53-
C:\Users\runneradmin\.cargo\git\db\
54-
key: ${{ runner.os }}-${{ matrix.args }}-${{ hashFiles('**/Cargo.lock') }}
55-
56-
- name: Export variable (unix)
57-
if: matrix.platform != 'windows-latest'
58-
run: echo "TAURI_SIGNING_PRIVATE_KEY=${{ secrets.TAURI_PRIVATE_KEY }}" >> $GITHUB_ENV
59-
- name: Export variable (windows)
60-
if: matrix.platform == 'windows-latest'
61-
run: echo "TAURI_SIGNING_PRIVATE_KEY=${{ secrets.TAURI_PRIVATE_KEY }}" >> $GITHUB_ENV
62-
shell: bash
63-
6438
- name: Install Rust stable
6539
uses: dtolnay/rust-toolchain@stable
6640
with:
6741
# Those targets are only used on macOS runners so it's in an `if` to slightly speed up windows and linux builds.
6842
targets: ${{ matrix.platform == 'macos-latest' && 'aarch64-apple-darwin,x86_64-apple-darwin' || matrix.platform == 'windows-latest' && 'i686-pc-windows-msvc,x86_64-pc-windows-msvc' || '' }}
6943

44+
- uses: Swatinem/rust-cache@v2
45+
with:
46+
workspaces: src-tauri
47+
key: ${{ matrix.args }}
48+
7049
# azure.archive.ubuntu.com на раннерах периодически зависает на скачивании
7150
- name: Install dependencies (Ubuntu only)
7251
if: matrix.platform == 'ubuntu-22.04' # This must match the platform value defined above.
@@ -81,8 +60,7 @@ jobs:
8160
sudo apt-get install -y libwebkit2gtk-4.1-dev libappindicator3-dev librsvg2-dev patchelf libssl-dev
8261
8362
- name: Install frontend dependencies
84-
run: |
85-
pnpm install
63+
run: pnpm install --frozen-lockfile
8664

8765
- name: Import Apple code signing certificates
8866
if: matrix.platform == 'macos-latest'
@@ -107,19 +85,17 @@ jobs:
10785
- uses: tauri-apps/tauri-action@v1
10886
env:
10987
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
88+
TAURI_SIGNING_PRIVATE_KEY: ${{ secrets.TAURI_PRIVATE_KEY }}
11089
APPLE_SIGNING_IDENTITY: ${{ env.APPLE_SIGNING_IDENTITY }}
11190
APPLE_ID: ${{ secrets.APPLE_ID }}
11291
APPLE_PASSWORD: ${{ secrets.APPLE_PASSWORD }}
11392
APPLE_TEAM_ID: ${{ secrets.APPLE_TEAM_ID }}
11493
with:
11594
tagName: app-v__VERSION__ # the action automatically replaces __VERSION__ with the app version.
116-
appName: 'switch-shuttle_${{ matrix.os }}'
11795
releaseName: 'Release v__VERSION__'
11896
releaseBody: 'See the assets to download this version and install.'
11997
releaseDraft: true
12098
prerelease: false
12199
args: ${{ matrix.args }}
122-
includeUpdaterJson: true
123100
updaterJsonPreferNsis: true
124-
includeDebug: false
125-
includeRelease: true
101+
retryAttempts: 2

‎.github/workflows/docs.yml‎

Lines changed: 13 additions & 33 deletions
Original file line numberDiff line numberDiff line change
@@ -12,48 +12,28 @@ jobs:
1212
run:
1313
working-directory: docs
1414
steps:
15-
- uses: actions/checkout@v4
16-
17-
- name: Use Node.js 20.x
18-
uses: actions/setup-node@v4
19-
with:
20-
node-version: '20.x'
21-
15+
- uses: actions/checkout@v7
16+
2217
- name: Install pnpm
23-
uses: pnpm/action-setup@v2
18+
uses: pnpm/action-setup@v6
2419
with:
2520
version: 9.15.4
26-
27-
- name: Get pnpm store directory
28-
shell: bash
29-
run: |
30-
echo "STORE_PATH=$(pnpm store path --silent)" >> $GITHUB_ENV
31-
32-
- name: Setup pnpm cache
33-
uses: actions/cache@v4
34-
with:
35-
path: ${{ env.STORE_PATH }}
36-
key: ${{ runner.os }}-pnpm-store-${{ hashFiles('docs/pnpm-lock.yaml') }}
37-
restore-keys: |
38-
${{ runner.os }}-pnpm-store-
39-
40-
- name: Cache node_modules
41-
uses: actions/cache@v4
21+
22+
- name: Use Node.js 22
23+
uses: actions/setup-node@v7
4224
with:
43-
path: |
44-
docs/node_modules
45-
key: ${{ runner.os }}-node-modules-${{ hashFiles('docs/pnpm-lock.yaml') }}
46-
restore-keys: |
47-
${{ runner.os }}-node-modules-
48-
25+
node-version: 22
26+
cache: 'pnpm'
27+
cache-dependency-path: docs/pnpm-lock.yaml
28+
4929
- name: Install dependencies
50-
run: pnpm install
30+
run: pnpm install --frozen-lockfile
5131

5232
- name: Build docs
5333
run: NUXT_APP_BASE_URL=/switchshuttle/ pnpm nuxt build --preset github_pages
5434

5535
- name: Upload artifact
56-
uses: actions/upload-pages-artifact@v3
36+
uses: actions/upload-pages-artifact@v5
5737
with:
5838
path: docs/.output/public
5939

@@ -74,4 +54,4 @@ jobs:
7454
steps:
7555
- name: Deploy to GitHub Pages
7656
id: deployment
77-
uses: actions/deploy-pages@v4
57+
uses: actions/deploy-pages@v5

‎.github/workflows/update-homebrew-cask.yml‎

Lines changed: 3 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -21,13 +21,7 @@ jobs:
2121

2222
steps:
2323
- name: Checkout SwitchShuttle repository
24-
uses: actions/checkout@v4
25-
26-
- name: Setup Node.js
27-
uses: actions/setup-node@v4
28-
with:
29-
node-version: '18'
30-
cache: 'npm'
24+
uses: actions/checkout@v7
3125

3226
- name: Get version
3327
id: version
@@ -41,7 +35,7 @@ jobs:
4135
VERSION=${VERSION#app-v}
4236
echo "Using release version: $VERSION"
4337
else
44-
VERSION=$(node -p "require('./package.json').version")
38+
VERSION=$(jq -r .version package.json)
4539
echo "Using version from package.json: $VERSION"
4640
fi
4741
echo "version=$VERSION" >> $GITHUB_OUTPUT
@@ -72,7 +66,7 @@ jobs:
7266
echo "universal_sha256=$UNIVERSAL_SHA256" >> $GITHUB_OUTPUT
7367
7468
- name: Checkout homebrew-switchshuttle repository
75-
uses: actions/checkout@v4
69+
uses: actions/checkout@v7
7670
with:
7771
repository: s00d/homebrew-switchshuttle
7872
token: ${{ secrets.HOMEBREW_TOKEN }}

0 commit comments

Comments
 (0)