GlazeWM is a tiling window manager for macOS and Windows inspired by i3wm.
ci: use packaging powershell script in workflow; remove build workflow
Lars Bergerf21d01af6733
diff --git a/.github/workflows/build.yaml b/.github/workflows/build.yamldeleted file mode 100644index cdbd37f1..00000000--- a/.github/workflows/build.yaml+++ /dev/null@@ -1,57 +0,0 @@-name: Build--on:- workflow_call:- inputs:- version-number:- type: string- pull_request:- types: [opened, synchronize, reopened]--jobs:- build:- strategy:- fail-fast: false- matrix:- include:- # 64-bit Windows (Intel & AMD)- - rust-target: x86_64-pc-windows-msvc-- # 64-bit Windows (ARM)- - rust-target: aarch64-pc-windows-msvc-- runs-on: windows-latest- steps:- - uses: actions/checkout@v4-- - uses: dtolnay/rust-toolchain@be73d7920c329f220ce78e0234b8f96b7ae60248- with:- toolchain: nightly- targets: ${{ matrix.rust-target }}-- - uses: swatinem/rust-cache@988c164c3d0e93c4dbab36aaf5bbeb77425b2894- with:- shared-key: ${{ matrix.rust-target }}-${{ hashFiles('Cargo.lock') }}-- - name: Create output directories- run: mkdir out/noconsole out/console-- - name: Build (windows subsystem)- env:- VERSION_NUMBER: ${{ inputs.version-number || '0.0.0' }}- run: |- cargo build --locked --release --target ${{ matrix.rust-target }} --features no_console- mv target/${{ matrix.rust-target }}/release/{wm,watcher}.exe out/noconsole-- - name: Build (console subsystem)- env:- VERSION_NUMBER: ${{ inputs.version-number || '0.0.0' }}- run: |- cargo build --locked --release --target ${{ matrix.rust-target }}- mv target/${{ matrix.rust-target }}/release/{wm,watcher}.exe out/console-- - uses: actions/upload-artifact@v4- with:- name: executables-${{ matrix.rust-target }}- if-no-files-found: error- path: out/**diff --git a/.github/workflows/package.yaml b/.github/workflows/package.yamlindex 38e153e3..82c1867a 100644--- a/.github/workflows/package.yaml+++ b/.github/workflows/package.yaml@@ -19,40 +19,18 @@ jobs:steps:- uses: actions/checkout@v4- - name: Download executables- uses: actions/download-artifact@v4+ - uses: dtolnay/rust-toolchain@be73d7920c329f220ce78e0234b8f96b7ae60248with:- name: executables-*- path: out/+ toolchain: nightly+ targets: x86_64-pc-windows-msvc,aarch64-pc-windows-msvc- - name: Download Zebar installers- run: |- $latestRelease = 'https://api.github.com/repos/glzr-io/zebar/releases/latest'- $latestInstallers = Invoke-RestMethod $latestRelease | % assets | ? name -like "*.msi"- $latestInstallers | % { Invoke-WebRequest $_.browser_download_url -OutFile (Join-Path "out" $_.name) }-- - name: Install WiX and its extensions- run: |- dotnet tool install --global wix --version 5.0.0- wix extension add WixToolset.UI.wixext/5 WixToolset.Util.wixext/5 WixToolset.BootstrapperApplications.wixext/5-- - name: Create MSI installer (x64)- run: |- wix build -arch "x64" -ext WixToolset.UI.wixext -ext WixToolset.Util.wixext \- -out "./out/installer-x64.msi" "./resources/wix/standalone.wxs" "./resources/wix/standalone-ui.wxs" \- -d VERSION_NUMBER="${{ needs.next-version.outputs.new-release-version }}"-- - name: Create MSI installer (arm64)- run: |- wix build -arch "arm64" -ext WixToolset.UI.wixext -ext WixToolset.Util.wixext \- -out "./out/installer-arm64.msi" "./resources/wix/standalone.wxs" "./resources/wix/standalone-ui.wxs" \- -d VERSION_NUMBER="${{ needs.next-version.outputs.new-release-version }}"+ - uses: swatinem/rust-cache@988c164c3d0e93c4dbab36aaf5bbeb77425b2894+ with:+ shared-key: ${{ hashFiles('Cargo.lock') }}- - name: Create universal installer+ - name: Run packaging scriptrun: |- wix build -arch "x64" -ext WixToolset.BootstrapperApplications.wixext \- -out "./out/installer-universal.exe" "./resources/wix/bundle.wxs" \- -d VERSION_NUMBER="${{ needs.next-version.outputs.new-release-version }}"+ ./resources/scripts/package.ps1 -VERSION_NUMBER ${{ needs.next-version.outputs.new-release-version }}- uses: actions/upload-artifact@v4with: