mirror of
https://github.com/OpenBB-finance/OpenBB.git
synced 2026-11-15 22:02:31 +00:00
* configure the updater and some fix some macos tahoe css errors * enclosure for title_bar_style on Window build * those should have been added to the commit * test update to 0.6.0 * allow unused mut * update version in tauri.conf * fix versioned release draft * fix windows beforeBundle script * force app restart on update * fix release build * fix latest tag files * latest tag title * try testing for windows ARM * improve build workflow cleanup for cache * actually use the windows-11-arm runner * copy and bundle openssl items directly from runner * we actually need those files as placeholders for linters and unit tests * no need to rebuild assets when converting draft to published * fix verbosity * fix windows openssl dir * converting draft release to published should not run the build workflows * converting draft release to published should not run the build workflows * separate release draft build from publish * release dekstop dispatch * release dekstop dispatch * fix dylibs * undo fix_dylib change and attempt to handle restart on update * move restart exit code up * bump version to test updater restarting * windows updater signature * positional argument..? * arg is --password * try this for mac updater * add message to updater to inform users to start the app manually after update * add toast message for first API run * get windows to open the window after updating..? * cargo clippy * update package locks for vite * fix css thing * version bump for another test * bump for v 1 --------- Co-authored-by: deeleeramone <>
117 lines
3.4 KiB
YAML
Vendored
117 lines
3.4 KiB
YAML
Vendored
name: Test Windows ARM64
|
|
|
|
on:
|
|
pull_request:
|
|
branches:
|
|
- develop
|
|
paths:
|
|
- 'desktop/**'
|
|
|
|
concurrency:
|
|
group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.sha }}
|
|
cancel-in-progress: true
|
|
|
|
jobs:
|
|
test-windows-arm64:
|
|
runs-on: windows-11-arm
|
|
permissions:
|
|
contents: read
|
|
defaults:
|
|
run:
|
|
working-directory: desktop
|
|
env:
|
|
VCPKG_ROOT: ${{ github.workspace }}/vcpkg
|
|
steps:
|
|
- uses: actions/checkout@v4
|
|
|
|
- name: Cache vcpkg
|
|
uses: actions/cache@v4
|
|
with:
|
|
path: ${{ env.VCPKG_ROOT }}
|
|
key: ${{ runner.os }}-vcpkg-arm64-${{ hashFiles('desktop/**/vcpkg.json') }}
|
|
restore-keys: |
|
|
${{ runner.os }}-vcpkg-arm64-
|
|
|
|
- name: Bootstrap vcpkg
|
|
working-directory: ${{ github.workspace }}
|
|
run: |
|
|
if (-not (Test-Path ${{ env.VCPKG_ROOT }})) {
|
|
git clone https://github.com/microsoft/vcpkg.git ${{ env.VCPKG_ROOT }}
|
|
}
|
|
${{ env.VCPKG_ROOT }}/bootstrap-vcpkg.bat
|
|
shell: pwsh
|
|
|
|
- name: Install OpenSSL using vcpkg
|
|
working-directory: ${{ github.workspace }}
|
|
run: ${{ env.VCPKG_ROOT }}/vcpkg install openssl:arm64-windows-static --vcpkg-root ${{ env.VCPKG_ROOT }}
|
|
env:
|
|
VCPKG_DEFAULT_TRIPLET: arm64-windows-static
|
|
|
|
- name: Set OpenSSL env
|
|
shell: bash
|
|
run: |
|
|
echo "OPENSSL_DIR=${{ env.VCPKG_ROOT }}/installed/arm64-windows-static" >> $GITHUB_ENV
|
|
echo "OPENSSL_INCLUDE_DIR=${{ env.VCPKG_ROOT }}/installed/arm64-windows-static/include" >> $GITHUB_ENV
|
|
echo "OPENSSL_LIB_DIR=${{ env.VCPKG_ROOT }}/installed/arm64-windows-static/lib" >> $GITHUB_ENV
|
|
|
|
- name: Set up Node.js
|
|
uses: actions/setup-node@v4
|
|
with:
|
|
node-version: lts/*
|
|
|
|
- name: Set up Rust
|
|
uses: actions-rs/toolchain@v1
|
|
with:
|
|
toolchain: stable
|
|
profile: minimal
|
|
components: clippy, rustfmt
|
|
override: true
|
|
target: aarch64-pc-windows-msvc
|
|
|
|
- name: Cache cargo registry
|
|
uses: actions/cache@v4
|
|
with:
|
|
path: |
|
|
~/.cargo/registry
|
|
~/.cargo/git
|
|
key: windows-arm64-cargo-registry-${{ hashFiles('desktop/**/Cargo.lock') }}
|
|
restore-keys: |
|
|
windows-arm64-cargo-registry-
|
|
|
|
- name: Cache cargo build
|
|
uses: actions/cache@v4
|
|
with:
|
|
path: desktop/target
|
|
key: windows-arm64-cargo-build-${{ hashFiles('desktop/**/Cargo.lock') }}
|
|
restore-keys: |
|
|
windows-arm64-cargo-build-
|
|
|
|
- name: Check formatting
|
|
run: cargo fmt --all -- --check
|
|
|
|
- name: Run clippy linter
|
|
run: cargo clippy --all-targets --all-features --target aarch64-pc-windows-msvc -- -D warnings
|
|
|
|
- name: Run tests
|
|
run: cargo test --all --target aarch64-pc-windows-msvc
|
|
|
|
- name: Cache node_modules
|
|
uses: actions/cache@v4
|
|
with:
|
|
path: desktop/node_modules
|
|
key: windows-arm64-node-modules-${{ hashFiles('desktop/**/package-lock.json') }}
|
|
restore-keys: |
|
|
windows-arm64-node-modules-
|
|
|
|
- name: Install frontend dependencies
|
|
run: npm ci
|
|
|
|
- name: Lint frontend code
|
|
run: npm run lint
|
|
|
|
- name: Type check
|
|
run: ./node_modules/.bin/tsc --noEmit
|
|
|
|
- name: Run frontend tests
|
|
run: npm run test -- --watch=false
|