From 3b58e9f4a2de23acfe169f80643c619b33c4940e Mon Sep 17 00:00:00 2001 From: Kyle Machulis Date: Fri, 21 Jul 2023 20:38:17 -0700 Subject: [PATCH] build: Tweak windows CI for rust caching and signtool runs --- .github/workflows/central.yml | 139 +++++++++++++++++----------------- 1 file changed, 71 insertions(+), 68 deletions(-) diff --git a/.github/workflows/central.yml b/.github/workflows/central.yml index 3169a19..f65d0e0 100644 --- a/.github/workflows/central.yml +++ b/.github/workflows/central.yml @@ -21,6 +21,8 @@ jobs: - uses: Swatinem/rust-cache@v2 with: workspaces: intiface-engine-flutter-bridge + cache-targets: false + cache-directories: .\build\windows\x64\Release\cargo prefix-key: rust-v0 - uses: subosito/flutter-action@v2 with: @@ -44,7 +46,7 @@ jobs: - name: Sign Intiface Central Executable shell: pwsh run: | - "C:\Program Files (x86)\Windows Kits\10\bin\10.0.22000.0\x64\signtool.exe" sign /f .\cert.pfx /t http://timestamp.digicert.com /fd SHA256 .\build\windows\runner\Release\intiface_central.exe + & "C:\Program Files (x86)\Windows Kits\10\bin\10.0.22000.0\x64\signtool.exe" sign /f .\cert.pfx /t http://timestamp.digicert.com /fd SHA256 .\build\windows\runner\Release\intiface_central.exe - name: Build Innosetup Installer shell: pwsh run: | @@ -52,76 +54,77 @@ jobs: - name: Sign Innosetup Installer shell: pwsh run: | - "C:\Program Files (x86)\Windows Kits\10\bin\10.0.22000.0\x64\signtool.exe" sign /f .\cert.pfx /t http://timestamp.digicert.com /fd SHA256 .\installer\intiface-central-installer.exe + & "C:\Program Files (x86)\Windows Kits\10\bin\10.0.22000.0\x64\signtool.exe" sign /f .\cert.pfx /t http://timestamp.digicert.com /fd SHA256 .\installer\intiface-central-installer.exe - name: Archive production artifacts uses: actions/upload-artifact@v3 with: name: windows-installer path: | installer/intiface-central-installer.exe - linux: - runs-on: ubuntu-latest - steps: - - uses: actions/checkout@v3 - - name: rust toolchain - uses: actions-rs/toolchain@v1 - with: - profile: minimal - toolchain: stable - override: true - - uses: Swatinem/rust-cache@v2 - with: - workspaces: intiface-engine-flutter-bridge - prefix-key: rust-v0 - - uses: subosito/flutter-action@v2 - with: - channel: 'stable' - cache: true - cache-key: 'flutter-:os:-:channel:-:version:-:arch:-:hash:' - - run: | - sudo apt-get update -y - sudo apt-get install -y ninja-build libudev-dev libgtk-3-dev - - run: flutter config --enable-linux-desktop - name: flutter config - - run: flutter build linux --release - name: flutter build - - name: Zip Release - run: zip -r intiface-central-linux-x64.zip build/linux/x64/release/bundle - - name: Archive production artifacts - uses: actions/upload-artifact@v3 - with: - name: linux-zip - path: ./intiface-central-linux-x64.zip - - macos: - runs-on: macos-latest - steps: - - uses: actions/checkout@v3 - - name: rust toolchain - uses: actions-rs/toolchain@v1 - with: - profile: minimal - toolchain: stable - override: true - - uses: Swatinem/rust-cache@v2 - with: - workspaces: intiface-engine-flutter-bridge - prefix-key: rust-v0 - - uses: subosito/flutter-action@v2 - with: - channel: 'stable' - cache: true - cache-key: 'flutter-:os:-:channel:-:version:-:arch:-:hash:' - - run: flutter config --enable-macos-desktop - name: flutter config - - run: flutter build macos --release - name: flutter build - - name: Zip Release - run: zip -r intiface-central-macos-universal.zip build/macos/Build/Products/Release/intiface_central.app - - name: Archive production artifacts - uses: actions/upload-artifact@v3 - with: - name: macos-zip - path: ./intiface-central-macos-universal.zip - - +# linux: +# runs-on: ubuntu-latest +# steps: +# - uses: actions/checkout@v3 +# - name: rust toolchain +# uses: actions-rs/toolchain@v1 +# with: +# profile: minimal +# toolchain: stable +# override: true +# - uses: Swatinem/rust-cache@v2 +# with: +# workspaces: intiface-engine-flutter-bridge +# prefix-key: rust-v0 +# - uses: subosito/flutter-action@v2 +# with: +# channel: 'stable' +# cache: true +# cache-key: 'flutter-:os:-:channel:-:version:-:arch:-:hash:' +# - run: | +# sudo apt-get update -y +# sudo apt-get install -y ninja-build libudev-dev libgtk-3-dev +# - run: flutter config --enable-linux-desktop +# name: flutter config +# - run: flutter build linux --release +# name: flutter build +# - name: Zip Release +# run: zip -r intiface-central-linux-x64.zip build/linux/x64/release/bundle +# - name: Archive production artifacts +# uses: actions/upload-artifact@v3 +# with: +# name: linux-zip +# path: ./intiface-central-linux-x64.zip +# +# macos: +# runs-on: macos-latest +# steps: +# - uses: actions/checkout@v3 +# - name: rust toolchain +# uses: actions-rs/toolchain@v1 +# with: +# profile: minimal +# toolchain: stable +# override: true +# - uses: Swatinem/rust-cache@v2 +# with: +# workspaces: intiface-engine-flutter-bridge +# prefix-key: rust-v0 +# - uses: subosito/flutter-action@v2 +# with: +# channel: 'stable' +# cache: true +# cache-key: 'flutter-:os:-:channel:-:version:-:arch:-:hash:' +# - run: flutter config --enable-macos-desktop +# name: flutter config +# - run: flutter build macos --release +# name: flutter build +# - name: Zip Release +# run: zip -r intiface-central-macos-universal.zip build/macos/Build/Products/Release/intiface_central.app +# - name: Archive production artifacts +# uses: actions/upload-artifact@v3 +# with: +# name: macos-zip +# path: ./intiface-central-macos-universal.zip +# +# +# \ No newline at end of file