Skip to content

Commit

Permalink
build: Tweak windows CI for rust caching and signtool runs
Browse files Browse the repository at this point in the history
  • Loading branch information
qdot committed Jul 22, 2023
1 parent e143644 commit 3b58e9f
Showing 1 changed file with 71 additions and 68 deletions.
139 changes: 71 additions & 68 deletions .github/workflows/central.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand All @@ -44,84 +46,85 @@ 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: |
iscc .\intiface-central-installer.iss
- 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
#
#
#

0 comments on commit 3b58e9f

Please sign in to comment.