Skip to content

A fast file manager for Windows and macOS that never freezes: tabs, dual panes, archives as folders, Quick Look-style previews. A File Explorer and Finder alternative written in Rust.

Release: x64 and ARM64 are built side by side, from Cargo.lock as committed

denfry4a02ce4d662b
diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml
index 94f3edda..7ed39135 100644
--- a/.github/workflows/release.yml
+++ b/.github/workflows/release.yml
@@ -16,7 +16,56 @@ permissions:
actions: read
jobs:
+ # x64 and ARM64 are built side by side on two runners: one after the other on the same runner they took ~16 + ~15 minutes, and
+ # neither needs the other. Each hands its program files to the release job below as an artifact.
+ build:
+ name: build (${{ matrix.arch }})
+ runs-on: windows-latest
+ strategy:
+ matrix:
+ include:
+ - arch: x64
+ rust-target: x86_64-pc-windows-msvc
+ # (the runner's own target: built as before, without --target, into target/release)
+ target-args: ""
+ out: target/release
+ dir: publish
+ - arch: arm64
+ rust-target: aarch64-pc-windows-msvc
+ # Windows on ARM, cross-compiled on the x64 runner (ring needs clang for it; the runner image has LLVM on its PATH)
+ target-args: --target aarch64-pc-windows-msvc
+ out: target/aarch64-pc-windows-msvc/release
+ dir: publish-arm64
+ steps:
+ - uses: actions/checkout@v4
+ - uses: dtolnay/rust-toolchain@stable
+ with:
+ targets: ${{ matrix.rust-target }}
+ - uses: Swatinem/rust-cache@v2
+ with:
+ # (both builds are the job "build": without this the two would share one cache key)
+ key: ${{ matrix.arch }}
+ - name: Build
+ # (rf-shellguard: the small program that puts Explorer's taskbar back if the dock dies; without it the dock leaves the taskbar alone)
+ # (--locked: the release is built from Cargo.lock as committed, the way CI builds ARM64, and stops if the lock is out of date)
+ run: cargo build --release --locked ${{ matrix.target-args }} -p rf-app -p rf-dialog -p rf-shellguard
+ - name: Collect files
+ shell: pwsh
+ run: |
+ New-Item -ItemType Directory ${{ matrix.dir }} | Out-Null
+ $a = '${{ matrix.out }}'
+ Copy-Item "$a/rustyfiles.exe", "$a/directlook.exe", "$a/rustyfiles-shellguard.exe", "$a/rustyfiles_dialog.dll", LICENSE ${{ matrix.dir }}
+ - name: Upload
+ # v7.0.2, pinned to its commit
+ uses: actions/upload-artifact@cf430e030ddbb5b0abf93d22962f4752f3646cd9
+ with:
+ name: ${{ matrix.dir }}
+ path: ${{ matrix.dir }}
+ if-no-files-found: error
+ retention-days: 1
+
release:
+ needs: build
runs-on: windows-latest
env:
# Code signing through SignPath Foundation (see .signpath/ and the README's "Code signing policy"). It runs when the secret
@@ -29,16 +78,17 @@ jobs:
SIGNPATH_POLICY: ${{ vars.SIGNPATH_POLICY }}
steps:
- uses: actions/checkout@v4
- - uses: dtolnay/rust-toolchain@stable
+ - name: Program files (x64)
+ # v8.0.2, pinned to its commit
+ uses: actions/download-artifact@9000827ccba6bdab643e8b6fd33ac0654aef8333
with:
- targets: aarch64-pc-windows-msvc
- - uses: Swatinem/rust-cache@v2
- - name: Build
- # (rf-shellguard: the small program that puts Explorer's taskbar back if the dock dies; without it the dock leaves the taskbar alone)
- run: cargo build --release -p rf-app -p rf-dialog -p rf-shellguard
- - name: Build (ARM64)
- # Windows on ARM, cross-compiled on this x64 runner (ring needs clang for it; the runner image has LLVM on its PATH)
- run: cargo build --release --target aarch64-pc-windows-msvc -p rf-app -p rf-dialog -p rf-shellguard
+ name: publish
+ path: publish
+ - name: Program files (ARM64)
+ uses: actions/download-artifact@9000827ccba6bdab643e8b6fd33ac0654aef8333
+ with:
+ name: publish-arm64
+ path: publish-arm64
- name: Version
id: v
shell: pwsh
@@ -46,14 +96,6 @@ jobs:
$v = '${{ github.ref_name }}'.TrimStart('v')
"version=$v" | Out-File -Append $env:GITHUB_OUTPUT
"pre=$(if ($v.Contains('-')) { 'true' } else { 'false' })" | Out-File -Append $env:GITHUB_OUTPUT
- - name: Collect files
- shell: pwsh
- run: |
- New-Item -ItemType Directory publish | Out-Null
- Copy-Item target/release/rustyfiles.exe, target/release/directlook.exe, target/release/rustyfiles-shellguard.exe, target/release/rustyfiles_dialog.dll, LICENSE publish
- New-Item -ItemType Directory publish-arm64 | Out-Null
- $a = 'target/aarch64-pc-windows-msvc/release'
- Copy-Item "$a/rustyfiles.exe", "$a/directlook.exe", "$a/rustyfiles-shellguard.exe", "$a/rustyfiles_dialog.dll", LICENSE publish-arm64
# The program files are signed BEFORE packing: Velopack puts them into Setup.exe, the portable zip and the update packages, so
# what gets installed is signed. One request for both architectures (.signpath/binaries.xml).
- name: Stage binaries for signing