Skip to content

Commit 1e23cb5

Browse files
chore(.github): use default runner tooling (#62)
* chore(.github): use default runner tooling * refactor: no need for cargo-edit
1 parent b126332 commit 1e23cb5

File tree

4 files changed

+5
-35
lines changed

4 files changed

+5
-35
lines changed

.github/workflows/auto-release.yml

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -19,11 +19,6 @@ jobs:
1919
with:
2020
ref: main
2121

22-
- name: setup node
23-
uses: actions/setup-node@v4
24-
with:
25-
node-version: 22.x
26-
2722
- name: verify PR was created by version-bump workflow
2823
uses: actions/github-script@v7
2924
env:

.github/workflows/publish.yml

Lines changed: 1 addition & 23 deletions
Original file line numberDiff line numberDiff line change
@@ -24,11 +24,6 @@ jobs:
2424
steps:
2525
- uses: actions/checkout@v4
2626

27-
- name: setup node
28-
uses: actions/setup-node@v4
29-
with:
30-
node-version: lts/*
31-
3227
- name: get version
3328
id: version
3429
uses: actions/github-script@v7
@@ -97,11 +92,6 @@ jobs:
9792
with:
9893
bun-version: latest
9994

100-
- name: setup node
101-
uses: actions/setup-node@v4
102-
with:
103-
node-version: 22.x
104-
10595
- name: get version
10696
id: version
10797
uses: actions/github-script@v7
@@ -110,12 +100,6 @@ jobs:
110100
const { version } = require('./package.json')
111101
core.setOutput('version', version)
112102
113-
- name: install Rust stable
114-
uses: dtolnay/rust-toolchain@stable
115-
with:
116-
# Those targets are only used on macos runners so it's in an `if` to slightly speed up windows and linux builds.
117-
targets: ${{ matrix.platform == 'macos-latest' && 'aarch64-apple-darwin,x86_64-apple-darwin' || '' }}
118-
119103
- name: install dependencies (ubuntu only)
120104
if: matrix.platform == 'ubuntu-22.04' # This must match the platform value defined above.
121105
run: |
@@ -134,12 +118,6 @@ jobs:
134118
if: matrix.platform == 'windows-latest'
135119
run: New-Item -Name ".env" -ItemType File
136120

137-
- name: install Go stable (windows)
138-
if: matrix.platform == 'windows-latest'
139-
uses: actions/setup-go@v4
140-
with:
141-
go-version: "stable"
142-
143121
- name: install relic (windows)
144122
if: matrix.platform == 'windows-latest'
145123
run: |
@@ -149,7 +127,7 @@ jobs:
149127
if: matrix.platform == 'macos-latest'
150128
run: pip3 install codemagic-cli-tools --break-system-packages
151129

152-
- name: install apple certificates and provisioning profiles
130+
- name: install apple certificates and provisioning profiles (macos)
153131
if: matrix.platform == 'macos-latest'
154132
env:
155133
KEYCHAIN_PASSWORD: ${{ secrets.KEYCHAIN_PASSWORD }}

.github/workflows/version-bump.yml

Lines changed: 3 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -34,11 +34,6 @@ jobs:
3434
with:
3535
fetch-depth: 0
3636

37-
- name: setup node
38-
uses: actions/setup-node@v4
39-
with:
40-
node-version: 22.x
41-
4237
- name: get current version and calculate new version
4338
id: version
4439
uses: actions/github-script@v7
@@ -73,9 +68,11 @@ jobs:
7368
packageJson.version = process.env.NEW_VERSION
7469
fs.writeFileSync('./package.json', JSON.stringify(packageJson, null, 2) + '\n')
7570
76-
- name: update Cargo.toml
71+
- name: update Cargo.toml and Cargo.lock
7772
run: |
7873
sed -i 's/^version = ".*"/version = "${{ steps.version.outputs.new_version }}"/' src-tauri/Cargo.toml
74+
cd src-tauri
75+
cargo update -p exam-env
7976
8077
- name: update tauri.conf.json
8178
uses: actions/github-script@v7

src-tauri/Cargo.lock

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)