-
Notifications
You must be signed in to change notification settings - Fork 287
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
1022163
commit 0a0bb54
Showing
34 changed files
with
11,378 additions
and
26,123 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,162 @@ | ||
name: Produce Desktop Binary Builds | ||
on: | ||
workflow_dispatch: | ||
push: | ||
tags: | ||
- "v*" | ||
branches: | ||
- dev | ||
- master | ||
- main | ||
|
||
env: | ||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | ||
ENABLE_CODE_SIGNING: ${{ secrets.APPLE_CERTIFICATE }} | ||
APPLE_CERTIFICATE: ${{ secrets.APPLE_CERTIFICATE }} | ||
APPLE_CERTIFICATE_PASSWORD: ${{ secrets.APPLE_CERTIFICATE_PASSWORD }} | ||
APPLE_SIGNING_IDENTITY: ${{ secrets.APPLE_SIGNING_IDENTITY }} | ||
APPLE_ID: ${{ secrets.APPLE_ID }} | ||
APPLE_PASSWORD: ${{ secrets.APPLE_PASSWORD }} | ||
|
||
concurrency: | ||
group: ${{ github.workflow }}-${{ github.ref }} | ||
cancel-in-progress: true | ||
permissions: | ||
contents: write | ||
|
||
jobs: | ||
build: | ||
#defaults: | ||
# run: | ||
# working-directory: GUI/ETVR | ||
strategy: | ||
fail-fast: false | ||
matrix: | ||
node-version: [18.x] | ||
platform: [windows-latest, ubuntu-latest, macos-latest] | ||
include: | ||
- os: ubuntu-latest | ||
rust_target: x86_64-unknown-linux-gnu | ||
- os: windows-latest | ||
rust_target: x86_64-pc-windows-msvc | ||
- os: macos-latest | ||
rust_target: x86_64-apple-darwin | ||
- os: macos-latest | ||
rust_target: aarch64-apple-darwin | ||
runs-on: ${{ matrix.platform }} | ||
steps: | ||
- name: Checkout repository | ||
uses: actions/checkout@v3 | ||
with: | ||
token: ${{ env.GITHUB_TOKEN }} | ||
|
||
- name: Node.js setup ${{ matrix.node-version }} | ||
uses: actions/setup-node@v3 | ||
with: | ||
node-version: ${{ matrix.node-version }} | ||
cache: "pnpm" | ||
# node-version-file: '.nvmrc' | ||
|
||
- name: "Setup Rust" | ||
uses: actions-rs/toolchain@v1 | ||
with: | ||
default: true | ||
override: true | ||
profile: minimal | ||
toolchain: stable | ||
target: ${{ matrix.platform.rust_target }} | ||
- uses: Swatinem/rust-cache@v2 | ||
with: | ||
workspaces: "./src-tauri -> target" | ||
|
||
- name: Install dependencies (ubuntu only) | ||
if: matrix.platform == 'ubuntu-latest' | ||
run: | | ||
sudo apt-get update | ||
sudo apt-get install -y libgtk-3-dev webkit2gtk-4.0 libappindicator3-dev librsvg2-dev patchelf | ||
- name: Install dependencies (PNPM) | ||
run: | | ||
npm install -g pnpm | ||
npm install -g typescript | ||
cd GUI/ETVR | ||
pnpm install | ||
- uses: JonasKruckenberg/tauri-build@v1.2.3 | ||
id: tauri_build | ||
env: | ||
GITHUB_TOKEN: ${{ env.GITHUB_TOKEN }} | ||
ENABLE_CODE_SIGNING: ${{ env.APPLE_CERTIFICATE }} | ||
APPLE_CERTIFICATE: ${{ env.APPLE_CERTIFICATE }} | ||
APPLE_CERTIFICATE_PASSWORD: ${{ env.APPLE_CERTIFICATE_PASSWORD }} | ||
APPLE_SIGNING_IDENTITY: ${{ env.APPLE_SIGNING_IDENTITY }} | ||
APPLE_ID: ${{ env.APPLE_ID }} | ||
APPLE_PASSWORD: ${{ env.APPLE_PASSWORD }} | ||
with: | ||
target: ${{ matrix.platform.rust_target }} | ||
|
||
- uses: actions/upload-artifact@v3 | ||
with: | ||
name: production-files | ||
path: "${{ join(fromJSON(steps.tauri_build.outputs.artifacts), '\n') }}" | ||
|
||
#- name: Build the app | ||
# uses: tauri-apps/tauri-action@v0 | ||
# env: | ||
# GITHUB_TOKEN: ${{ env.GITHUB_TOKEN }} | ||
# TAURI_PRIVATE_KEY: ${{ env.TAURI_PRIVATE_KEY }} | ||
# TAURI_KEY_PASSWORD: ${{ env.TAURI_KEY_PASSWORD }} | ||
# with: | ||
# # tauri-action replaces \_\_VERSION\_\_ with the app version | ||
# tagName: eyetrackvr-v__VERSION__ | ||
# releaseName: "EyeTrackApp v__VERSION__" # name of the release | ||
# releaseBody: "See the assets to download this version and install." # message to include in the release | ||
# releaseDraft: true # set to false to publish the release as a finished product | ||
# prerelease: false # set to true to mark the release as a pre-release | ||
|
||
deploy: | ||
runs-on: ubuntu-latest | ||
name: Deploy | ||
needs: [build] | ||
steps: | ||
- name: Checkout | ||
uses: actions/checkout@v3 | ||
with: | ||
fetch-depth: 0 | ||
- name: Create Directory | ||
run: mkdir -p dist | ||
- name: Download artifact | ||
uses: actions/download-artifact@v2 | ||
with: | ||
name: production-files | ||
path: ./dist | ||
- name: Setup node | ||
uses: actions/setup-node@v3 | ||
with: | ||
node-version: 18 | ||
- run: npm install -g conventional-changelog-conventionalcommits | ||
- run: npm install -g semantic-release@v19.0.5 | ||
- run: npm install -g @semantic-release/exec | ||
- run: npm install -g @semantic-release/git | ||
- run: npm install -g @semantic-release/release-notes-generator | ||
- run: npm install -g @semantic-release/changelog | ||
- run: npm install -g @semantic-release/github | ||
- name: Release | ||
env: | ||
GITHUB_TOKEN: ${{ env.GITHUB_TOKEN }} | ||
run: | | ||
sudo apt-get install -y jq | ||
chmod +x ./scripts/prepareCMD.sh | ||
semantic-release | ||
cleanup: | ||
name: Cleanup actions | ||
needs: | ||
- deploy | ||
runs-on: ubuntu-latest | ||
timeout-minutes: 10 | ||
steps: | ||
- name: "♻️ remove build artifacts" | ||
uses: geekyeggo/delete-artifact@v1 | ||
with: | ||
name: production-files |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -13,5 +13,4 @@ | |
/node_modules | ||
/dist | ||
/.vs | ||
/web/docs/ | ||
pnpm-lock.yaml | ||
/web/docs/ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,190 @@ | ||
{ | ||
"branches": [ | ||
"main", | ||
"master", | ||
"release", | ||
{ | ||
"name": "SolidJSGUI", | ||
"prerelease": true | ||
} | ||
], | ||
"plugins": [ | ||
[ | ||
"@semantic-release/commit-analyzer", | ||
{ | ||
"preset": "conventionalcommits", | ||
"parserOpts": { | ||
"noteKeywords": [ | ||
"BREAKING CHANGE", | ||
"BREAKING CHANGES", | ||
"BREAKING" | ||
] | ||
}, | ||
"releaseRules": [ | ||
{ | ||
"breaking": true, | ||
"release": "major" | ||
}, | ||
{ | ||
"type": "feat", | ||
"release": "minor" | ||
}, | ||
{ | ||
"type": "fix", | ||
"release": "patch" | ||
}, | ||
{ | ||
"type": "perf", | ||
"release": "patch" | ||
}, | ||
{ | ||
"type": "revert", | ||
"release": "patch" | ||
}, | ||
{ | ||
"type": "docs", | ||
"scope": "docs-*", | ||
"release": "minor" | ||
}, | ||
{ | ||
"type": "docs", | ||
"release": false | ||
}, | ||
{ | ||
"type": "style", | ||
"release": "patch" | ||
}, | ||
{ | ||
"type": "refactor", | ||
"release": "patch" | ||
}, | ||
{ | ||
"type": "test", | ||
"release": "patch" | ||
}, | ||
{ | ||
"type": "build", | ||
"release": "patch" | ||
}, | ||
{ | ||
"type": "ci", | ||
"scope": "ci-*", | ||
"release": "patch" | ||
}, | ||
{ | ||
"type": "chore", | ||
"release": false | ||
}, | ||
{ | ||
"type": "no-release", | ||
"release": false | ||
} | ||
] | ||
} | ||
], | ||
[ | ||
"@semantic-release/release-notes-generator", | ||
{ | ||
"preset": "conventionalcommits", | ||
"parserOpts": { | ||
"noteKeywords": [ | ||
"BREAKING CHANGE", | ||
"BREAKING CHANGES", | ||
"BREAKING" | ||
] | ||
}, | ||
"writerOpts": { | ||
"commitsSort": [ | ||
"subject", | ||
"scope" | ||
] | ||
}, | ||
"presetConfig": { | ||
"types": [ | ||
{ | ||
"type": "feat", | ||
"section": "🍕 Features" | ||
}, | ||
{ | ||
"type": "feature", | ||
"section": "🍕 Features" | ||
}, | ||
{ | ||
"type": "fix", | ||
"section": "🐛 Bug Fixes" | ||
}, | ||
{ | ||
"type": "perf", | ||
"section": "🔥 Performance Improvements" | ||
}, | ||
{ | ||
"type": "revert", | ||
"section": "⏩ Reverts" | ||
}, | ||
{ | ||
"type": "docs", | ||
"section": "📝 Documentation" | ||
}, | ||
{ | ||
"type": "style", | ||
"section": "🎨 Styles" | ||
}, | ||
{ | ||
"type": "refactor", | ||
"section": "🧑💻 Code Refactoring" | ||
}, | ||
{ | ||
"type": "test", | ||
"section": "✅ Tests" | ||
}, | ||
{ | ||
"type": "build", | ||
"section": "🤖 Build System" | ||
}, | ||
{ | ||
"type": "ci", | ||
"section": "🔁 Continuous Integration" | ||
} | ||
] | ||
} | ||
} | ||
], | ||
[ | ||
"@semantic-release/changelog", | ||
{ | ||
"changelogTitle": "# 📦 Changelog \n[![conventional commits](https://img.shields.io/badge/conventional%20commits-1.0.0-yellow.svg)](https://conventionalcommits.org)\n[![semantic versioning](https://img.shields.io/badge/semantic%20versioning-2.0.0-green.svg)](https://semver.org)\n> All notable changes to this project will be documented in this file" | ||
} | ||
], | ||
[ | ||
"@semantic-release/exec", | ||
{ | ||
"prepareCmd": "./repo-tools/scripts/prepareCMD.sh ${nextRelease.version}", | ||
"publishCmd": "echo Publishing ${nextRelease.version}" | ||
} | ||
], | ||
[ | ||
"@semantic-release/github", | ||
{ | ||
"addReleases": "bottom", | ||
"assets": [ | ||
{ | ||
"path": "./dist/**/*.msi" | ||
} | ||
] | ||
} | ||
], | ||
[ | ||
"@semantic-release/git", | ||
{ | ||
"assets": [ | ||
"GUI/ETVR/package.json", | ||
"GUI/ETVR/src-tauri/tauri.conf.json", | ||
"GUI/ETVR/src-tauri/Cargo.toml", | ||
"LICENSE*", | ||
"CHANGELOG.md" | ||
], | ||
"message": "chore(${nextRelease.type}): ${nextRelease.version} [skip ci]\n\n${nextRelease.notes}" | ||
} | ||
] | ||
] | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
{ | ||
"recommendations": ["tauri-apps.tauri-vscode", "rust-lang.rust-analyzer", "esbenp.prettier-vscode"] | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
{ | ||
"editor.codeActionsOnSave": { | ||
"source.fixAll": true | ||
}, | ||
"cSpell.words": ["clippy", "shakram", "tamasfe"] | ||
} |
Oops, something went wrong.