Skip to content

Commit

Permalink
Over the Air Release Pipeline (#154)
Browse files Browse the repository at this point in the history
* carpe builds with upstream. add license file

* test carpe build

* update deps

* OS specific paths for config file. WIP migration

* conditional compilation for "canary" releases which have different system paths

* test pre-building rust

* test tags

* test ubuntu alone

* test ubuntu

* test all os targets

* test windows

* update file paths for config

* rust fmt & clippy

* adding  check migrate

* patch load error

* update deps

* use release from Dat-H-Tran/carpe/

* remove confitional windows installs in build.rs

* test all architectures

* fix parsing of legacy accounts.json

* can migrate legacy account. still some UI feedback issue

* clear all lint errors!

* formatting

* add lint action

* patch version issue

* remove deprecated views

* refactor migrate flow

* migration workflow

* try canary build

* change urls for upgrade manifests

* add canary logo

* have release workflow make canary icons

* add autoupdater [skip ci]

* patch issue with config dir

* upgrade to tauri 1.4.0

* alternate dll location

* patch canary name in release

* try windows resources in tauri.conf

* belt and suspenders dll copy

* remove passive

* chmod

* add resources dll dynamically with full path

* [carpe] add missing libgmp-10.dll

* change windows webview dependency. make mac builds universal

* test release caches per OS, try gmp.yaml building

* don't support ubuntu initially

* rename carpe canay executable

* add libgmp-10

* build gmp

* give the release the same name

* only copy libgmp-10

* don't copy libgmp-10

* move redistributed libs add to resources. canary has own tauri.conf file

* need to copy dlls before build

* try exporting only gmp.dll to build path

* lib permissions

* remove libgmp-10.dll

* add gmp.lib to resources

* try build libgmp win

* publish gmp

* add dylib. remove config.toml target.x86_64-pc-windows-msvc

* add libgmp-10.dll

* test mac gmp release

* test mac gmp

* try build mac gmp

* test publish gmp

* debug osx

* test dynamic osx

* mac

* test release

* patch file paths gmp

* update permissions

* try contains()

* conditionals

* test windows paths

* win paths

* canary rc 2 metadata

* don't run gmp.yaml evey commit

* Changes from Canary CI
Squashed commit of the following:

commit db53ce8
Author: 0o-de-lally <[email protected]>
Date:   Sat Aug 12 19:50:27 2023 -0400

    don't run gmp.yaml evey commit

commit 65a701e
Author: 0o-de-lally <[email protected]>
Date:   Sat Aug 12 19:48:41 2023 -0400

    canary rc 2 metadata

commit e640249
Author: 0o-de-lally <[email protected]>
Date:   Fri Aug 11 14:09:44 2023 -0400

    win paths

commit 835b2c8
Author: 0o-de-lally <[email protected]>
Date:   Fri Aug 11 14:07:16 2023 -0400

    test windows paths

commit 1d82b44
Author: 0o-de-lally <[email protected]>
Date:   Fri Aug 11 14:04:13 2023 -0400

    conditionals

commit d9e1ec0
Author: 0o-de-lally <[email protected]>
Date:   Fri Aug 11 13:59:10 2023 -0400

    try contains()

commit 51b649f
Author: 0o-de-lally <[email protected]>
Date:   Fri Aug 11 13:55:17 2023 -0400

    update permissions

commit 63d9802
Author: 0o-de-lally <[email protected]>
Date:   Fri Aug 11 13:52:36 2023 -0400

    patch file paths gmp

commit 7f61824
Author: 0o-de-lally <[email protected]>
Date:   Fri Aug 11 13:43:07 2023 -0400

    test release

commit 6e27059
Author: 0o-de-lally <[email protected]>
Date:   Fri Aug 11 13:34:40 2023 -0400

    mac

commit 85655eb
Author: 0o-de-lally <[email protected]>
Date:   Fri Aug 11 13:23:02 2023 -0400

    test dynamic osx

commit 2492e01
Author: 0o-de-lally <[email protected]>
Date:   Fri Aug 11 13:12:52 2023 -0400

    debug osx

commit b7616cc
Author: 0o-de-lally <[email protected]>
Date:   Fri Aug 11 13:10:04 2023 -0400

    test publish gmp

commit 3c25c26
Author: 0o-de-lally <[email protected]>
Date:   Fri Aug 11 13:04:30 2023 -0400

    try build mac gmp

commit 6094c08
Author: 0o-de-lally <[email protected]>
Date:   Fri Aug 11 12:58:34 2023 -0400

    test mac gmp

commit 7a7a388
Author: 0o-de-lally <[email protected]>
Date:   Fri Aug 11 12:53:44 2023 -0400

    test mac gmp release

commit d3ce48e
Author: 0o-de-lally <[email protected]>
Date:   Fri Aug 11 12:46:55 2023 -0400

    add libgmp-10.dll

commit 3cacc9b
Author: 0o-de-lally <[email protected]>
Date:   Fri Aug 11 12:45:43 2023 -0400

    add dylib. remove config.toml target.x86_64-pc-windows-msvc

commit 4856d80
Author: 0o-de-lally <[email protected]>
Date:   Thu Aug 10 20:10:10 2023 -0400

    publish gmp

commit 5649bf1
Author: 0o-de-lally <[email protected]>
Date:   Thu Aug 10 19:56:17 2023 -0400

    try build libgmp win

commit 5b787c2
Author: 0o-de-lally <[email protected]>
Date:   Thu Aug 10 19:31:57 2023 -0400

    add gmp.lib to resources

commit 13a178d
Author: 0o-de-lally <[email protected]>
Date:   Thu Aug 10 19:30:44 2023 -0400

    remove libgmp-10.dll

commit 6d1cbd1
Author: 0o-de-lally <[email protected]>
Date:   Thu Aug 10 19:29:48 2023 -0400

    lib permissions

commit 7cf3c0c
Author: 0o-de-lally <[email protected]>
Date:   Thu Aug 10 19:10:45 2023 -0400

    try exporting only gmp.dll to build path

commit 8a8a8f9
Author: 0o-de-lally <[email protected]>
Date:   Thu Aug 10 16:45:31 2023 -0400

    need to copy dlls before build

commit 3ca444e
Author: 0o-de-lally <[email protected]>
Date:   Thu Aug 10 16:16:42 2023 -0400

    move redistributed libs add to resources. canary has own tauri.conf file

commit a9aec3f
Author: 0o-de-lally <[email protected]>
Date:   Thu Aug 10 14:42:00 2023 -0400

    don't copy libgmp-10

commit 483a053
Author: 0o-de-lally <[email protected]>
Date:   Thu Aug 10 14:41:43 2023 -0400

    only copy libgmp-10

commit b82fe6a
Author: 0o-de-lally <[email protected]>
Date:   Thu Aug 10 13:34:59 2023 -0400

    give the release the same name

commit eecd3b1
Author: 0o-de-lally <[email protected]>
Date:   Thu Aug 10 13:32:55 2023 -0400

    build gmp

commit 03cc445
Author: 0o-de-lally <[email protected]>
Date:   Thu Aug 10 13:27:25 2023 -0400

    add libgmp-10

commit 8fc0490
Author: 0o-de-lally <[email protected]>
Date:   Thu Aug 10 12:49:12 2023 -0400

    rename carpe canay executable

commit 8941dda
Author: 0o-de-lally <[email protected]>
Date:   Thu Aug 10 12:26:32 2023 -0400

    don't support ubuntu initially

commit 7877b57
Author: 0o-de-lally <[email protected]>
Date:   Thu Aug 10 12:21:01 2023 -0400

    test release caches per OS, try gmp.yaml building

commit 406fdc4
Author: 0o-de-lally <[email protected]>
Date:   Thu Aug 10 11:54:04 2023 -0400

    change windows webview dependency. make mac builds universal

commit a454531
Author: Dat Tran <[email protected]>
Date:   Thu Aug 10 11:06:43 2023 +0700

    [carpe] add missing libgmp-10.dll

commit 77f5039
Author: 0o-de-lally <[email protected]>
Date:   Wed Aug 9 22:12:58 2023 -0400

    add resources dll dynamically with full path

commit f4952e3
Author: 0o-de-lally <[email protected]>
Date:   Wed Aug 9 21:58:52 2023 -0400

    chmod

commit e99d95a
Author: 0o-de-lally <[email protected]>
Date:   Wed Aug 9 19:58:08 2023 -0400

    remove passive

commit 61ae9bf
Author: 0o-de-lally <[email protected]>
Date:   Wed Aug 9 19:52:11 2023 -0400

    belt and suspenders dll copy

commit 02d907b
Author: 0o-de-lally <[email protected]>
Date:   Wed Aug 9 19:36:56 2023 -0400

    try windows resources in tauri.conf

* update git dependencies

* try windows glob gmp.yaml

* try different release action

* include commit

* try mac paths

* check all windows paths

* less windows artifacts

* retry windows build

* canary build

* try remove libgmp-10.dll from resources

* try coping all x86_64 contents

* remove libgmp-10.dll

* patch tauri.conf.json

* add gmp-10.dll instead of libgmp-10.dll

* add misisng dylib

* rename gmp-10.dll to libgmp-10.dll

* patch account creation bug. lib permissions.

* cleanup build info

* clean up code comments

* bump version

* update deps to zapatos 1.6.2

* update rust toolchain

* update cargo lock

* bump carpe version

* try patch tauri dll bug

* use %AppData%

* try $env on release

* patch bug after yarn install

* tmate

* remove nsis patch

* patch release.yaml for rust 1.70.0

* enforce semver tags for releases

* patch yaml

* update deps

* patch namedchain

* fix lint

* cleanup lint

* release.yaml

---------

Co-authored-by: Dat Tran <[email protected]>
  • Loading branch information
0o-de-lally and Dat-H-Tran authored Aug 24, 2023
1 parent 4b4d26b commit 8da6f9e
Show file tree
Hide file tree
Showing 133 changed files with 44,644 additions and 3,252 deletions.
3 changes: 3 additions & 0 deletions .eslintrc.cjs
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,9 @@ module.exports = {
ecmaVersion: 2020,
extraFileExtensions: ['.svelte'],
},
rules: {
"svelte/no-at-html-tags" : "off" // we use @html for translations only
},
env: {
browser: true,
es2017: true,
Expand Down
49 changes: 0 additions & 49 deletions .github/workflows/binary.yaml.bak

This file was deleted.

74 changes: 74 additions & 0 deletions .github/workflows/gmp.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,74 @@
name: gmp-compile

on:
push:
branches:
- '*gmp'
jobs:
buildme:
permissions:
contents: write
runs-on: ${{ matrix.config.os }}
strategy:
fail-fast: false
matrix:
config:
# - os: ubuntu-20.04
# vcpkg_triplet: x64-linux-release
- os: macos-11
vcpkg_triplet: x64-osx-dynamic
- os: windows-2019
vcpkg_triplet: x64-windows-release
steps:
# - name: Setup tmate session
# uses: mxschmitt/action-tmate@v3
# with:
# detached: true
- name: osx deps
if: matrix.config.os == 'macos-11'
run: brew install autoconf automake libtool

- name: vcpkg build
uses: johnwason/vcpkg-action@v5
id: vcpkg
with:
pkgs: gmp
triplet: ${{ matrix.config.vcpkg_triplet }}
cache-key: ${{ matrix.config.os }}
revision: master
token: ${{ github.token }}

- name: upload mac
uses: actions/upload-artifact@v3
if: matrix.config.os == 'macos-11'
with:
name: gmp-compile
path: ${{ github.workspace }}/vcpkg/installed/x64-osx*/**/libgmp*/

- name: upload windows
uses: actions/upload-artifact@v3
if: matrix.config.os == 'windows-2019'
with:
name: gmp-compile
path: ${{ github.workspace }}\vcpkg\installed\${{ matrix.config.vcpkg_triplet }}

- name: release mac
if: matrix.config.os == 'macos-11'
uses: ncipollo/release-action@v1
with:
allowUpdates: true
tag: gmp-libraries-${{ matrix.config.os }}
commit: ${{github.ref}}
body: "gmp libs built from source"
artifacts: ${{ github.workspace }}/vcpkg/installed/x64-osx*/**/*.dylib, ${{ github.workspace }}/vcpkg/installed/x64-osx*/**/*.a

- name: release win
if: matrix.config.os == 'windows-2019'
uses: ncipollo/release-action@v1
with:
allowUpdates: true
tag: gmp-libraries-${{ matrix.config.os }}
commit: ${{github.ref}}
body: "gmp libs built from source"
artifacts: ${{ github.workspace }}\vcpkg\installed\${{ matrix.config.vcpkg_triplet }}/**/*gmp*.lib, ${{ github.workspace }}\vcpkg\installed\${{ matrix.config.vcpkg_triplet }}/**/*gmp*.dll

28 changes: 28 additions & 0 deletions .github/workflows/lint.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
name: lint

on:
push:
tags:
- '*'
branches:
- '*'
jobs:
ts-lint:
runs-on: ubuntu-latest
steps:

# Setup Node.js
- name: setup node
uses: actions/setup-node@v3
with:
node-version: 18
# checkout
- name: checkout source
uses: actions/checkout@v3

######## Lint ########

- name: yarn installation
run: yarn install
- name: lint TS
run: yarn lint
55 changes: 0 additions & 55 deletions .github/workflows/release-ubuntu.depr

This file was deleted.

53 changes: 0 additions & 53 deletions .github/workflows/release-windows.depr

This file was deleted.

Loading

0 comments on commit 8da6f9e

Please sign in to comment.