Skip to content

Commit

Permalink
ci: release workflow update (#250)
Browse files Browse the repository at this point in the history
  • Loading branch information
kalvkusk authored Feb 28, 2024
1 parent 28cb756 commit 78d8adf
Show file tree
Hide file tree
Showing 5 changed files with 21 additions and 15 deletions.
3 changes: 1 addition & 2 deletions .github/workflows/build.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ jobs:
strategy:
fail-fast: false
matrix:
os: [ windows-latest, macos-latest ]
os: [ windows-latest, macos-11, macos-14 ]
name: build ${{ matrix.os }}
runs-on: ${{ matrix.os }}
steps:
Expand Down Expand Up @@ -81,7 +81,6 @@ jobs:
with:
workspaces: ./src-tauri
shared-key: "${{ matrix.os }}"
cache-all-crates: true
cache-on-failure: true


Expand Down
1 change: 1 addition & 0 deletions .github/workflows/lint.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@ on:
- opened
branches:
- 'release**'
- 'canary**'
- 'main'
jobs:
ts-lint:
Expand Down
12 changes: 1 addition & 11 deletions .github/workflows/release.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,22 +2,13 @@ name: release

on:
workflow_dispatch:
push:
tags:
- '[0-9]+.[0-9]+.[0-9]+'
- '[0-9]+.[0-9]+.[0-9]+-rc.[0-9]+'
- '[0-9]+.[0-9]+.[0-9]+-canary.[0-9]+'

branches:
- 'canary*'
- 'release-[0-9]+.[0-9]+.[0-9]+'
- 'ci'
jobs:
build-and-publish:
strategy:
fail-fast: false
matrix:
os: [ windows-latest, macos-latest ]
os: [ windows-latest, macos-11, macos-14]
name: build ${{ matrix.os }}
runs-on: ${{ matrix.os }}
steps:
Expand Down Expand Up @@ -66,7 +57,6 @@ jobs:
with:
workspaces: ./src-tauri
shared-key: "${{ matrix.os }}"
cache-all-crates: true
cache-on-failure: true

######## BUILD ########
Expand Down
16 changes: 16 additions & 0 deletions DEVELOPMENT.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
# Carpe - Development flow

```mermaid
graph TD;
K[Users report issues in GitHub Issue tracker] --> L[Code Owner assigns issues to contributors]
L --> A
A[Contributor forks repository in his GitHub Account] --> B[Opens PR to main in https://github.com/0LNetworkCommunity/carpe ] --> C[Automatic CI tests have to pass, Code Owner goes over the code]
C --> D[Code Owner merges the PR]
D --> E[Code Owner gathers multipe fixes / features]
E --> F[Code Owner branches main to canary-vX.X.X branch]
F --> G[CI builds and releases Canary binaries and pushes Over-The-Air updates to testers]
G --> H[Testers report succesful fixes, features and new issues]
G --> L
H --> I[Things that passed QA gets cherrypicked from Canary v.X.X.X to release-vX.X.X branch]
I --> J[Code owner releases and signs stable release binaries and pushes Over-The-Air updates]
```
4 changes: 2 additions & 2 deletions src-tauri/tauri.conf.canary.json
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
"updater": {
"active": true,
"endpoints": [
"https://raw.githubusercontent.com/0LNetworkCommunity/carpe/canary/autoupdater/autoupdater_payload_canary.json"
"https://raw.githubusercontent.com/0LNetworkCommunity/carpe/main/autoupdater/autoupdater_payload_canary.json"
],
"dialog": false,
"pubkey": "dW50cnVzdGVkIGNvbW1lbnQ6IG1pbmlzaWduIHB1YmxpYyBrZXk6IDk2NDM3QUIwRDdENjkyNjgKUldSb2t0YlhzSHBEbHZOTkNCT3ljZTJESE1yc2t5c1dqbFd0VkZ2THM3N0RucTV0TC9FeDBQb1oK"
Expand Down Expand Up @@ -81,4 +81,4 @@
"csp": "default-src 'self' blob: data: filesystem: ws: http: https: 'unsafe-eval' 'unsafe-inline'"
}
}
}
}

0 comments on commit 78d8adf

Please sign in to comment.