Skip to content

Commit bc28048

Browse files
committed
Fix: Update actions/checkout to version 4
This commit updates the `actions/checkout` action to version 4. This ensures compatibility with the latest GitHub Actions features and security updates.
1 parent b0d82df commit bc28048

File tree

1 file changed

+11
-8
lines changed

1 file changed

+11
-8
lines changed

.github/workflows/build.yml

Lines changed: 11 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,9 @@
11
name: Build and Package
2-
2+
description: Build and package the application
33
on:
4-
workflow_dispatch:
4+
push:
5+
branches:
6+
- main
57

68
jobs:
79
build:
@@ -22,7 +24,7 @@ jobs:
2224

2325
steps:
2426
- name: Checkout code
25-
uses: actions/checkout@v3
27+
uses: actions/checkout@v4
2628

2729
- name: Install Rust toolchain
2830
uses: dtolnay/rust-toolchain@stable
@@ -41,10 +43,12 @@ jobs:
4143
brew update
4244
brew install rustup-init
4345
44-
- name: Install dependencies (windows)
46+
- name: Install dependencies (Windows)
4547
if: matrix.os == 'windows-latest'
4648
run: |
4749
choco install wixtoolset -y
50+
rustup target add x86_64-pc-windows-gnu
51+
rustup install stable-x86_64-pc-windows-gnu
4852
4953
- name: Build Rust project
5054
run: cargo build --release --target ${{ matrix.target }} --manifest-path app/Cargo.toml
@@ -57,12 +61,11 @@ jobs:
5761
env:
5862
DEB_BUILD_OPTIONS: nocheck
5963

60-
- name: Package Windows (.exe/.msi)
64+
- name: Package Windows (.msi)
6165
if: matrix.package_type == 'windows'
6266
run: |
6367
cargo install cargo-wix
6468
cd app
65-
cargo wix init
6669
cargo wix --release --target ${{ matrix.target }}
6770
shell: bash
6871

@@ -76,10 +79,10 @@ jobs:
7679
BUNDLE_NAME: MyApp
7780

7881
- name: Upload Artifacts
79-
uses: actions/upload-artifact@v3
82+
uses: actions/upload-artifact@v4
8083
with:
8184
name: packages-${{ matrix.os }}
8285
path: |
8386
app/target/${{ matrix.target }}/release/*.deb
84-
app/target/wix/msi/*.msi
87+
app/target/wix/*.msi
8588
app/target/release/bundle/dmg/*.dmg

0 commit comments

Comments
 (0)