-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: add dev build ci & new form help text in GUI (#8)
* ci: add dev build ci * ci: rename GUI ci name * ci: add tag * ci(dev): remove tag in changelog * ci(dev): remove changelog action * ci(dev): attempt new changelog * ci(release): add if condition * ci(dev): add recreate tag action * ci(dev): change recreate tag action * ci(dev): add `force` in recreate tag action * ci(dev): attempt recreate tag ci * ci(dev): attempt recreate tag ci * ci(dev): attempt recreate tag ci * ci(dev): attempt recreate tag ci * ci(dev): attempt recreate tag ci * ci(dev): attempt recreate tag ci * ci(dev): attempt recreate tag ci * ci(dev): attempt recreate tag ci * ci(dev): attempt recreate tag ci * ci(dev): attempt recreate tag ci * ci(dev): attempt recreate tag ci * ci(dev): attempt recreate tag ci * ci(dev): attempt recreate tag ci * ci(dev): attempt recreate tag ci * ci(dev): attempt recreate tag ci * ci(dev): attempt recreate tag ci * ci(dev): attempt recreate tag ci * ci(dev): attempt recreate tag ci * ci(dev): attempt recreate tag ci * ci(dev): revert changelog action * fix(front): fix css preset design * feat(front-form): change help texts Implemented a suggestion for more clarity in posts * ci(cli): change toolchain action Node.js 12 is old * fix(front): remove removed import
- Loading branch information
1 parent
680ef30
commit 20a64c4
Showing
11 changed files
with
318 additions
and
121 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,83 @@ | ||
name: Development Release CLI | ||
|
||
on: | ||
push: | ||
branches: ["development"] | ||
|
||
jobs: | ||
build: | ||
name: Release binary | ||
strategy: | ||
matrix: | ||
include: | ||
- os: ubuntu-latest | ||
target: x86_64-unknown-linux-gnu | ||
artifact_name: dar2oar | ||
asset_name: dar2oar-x86_64-unknown-linux-gnu.tar.gz | ||
- os: ubuntu-latest | ||
target: x86_64-unknown-linux-musl | ||
artifact_name: dar2oar | ||
asset_name: dar2oar-x86_64-unknown-linux-musl.tar.gz | ||
- os: ubuntu-latest | ||
target: x86_64-pc-windows-gnu | ||
artifact_name: dar2oar.exe | ||
asset_name: dar2oar-x86_64-pc-windows-gnu.zip | ||
- os: macos-latest | ||
target: x86_64-apple-darwin | ||
artifact_name: dar2oar | ||
asset_name: dar2oar-x86_64-apple-darwin.zip | ||
|
||
runs-on: ${{ matrix.os }} | ||
|
||
steps: | ||
- name: Checkout repository | ||
uses: actions/checkout@v3 | ||
|
||
# Without it, once created, the commit sha for the tag will not be updated. | ||
- name: Recreate tag | ||
run: | | ||
git config user.name 'github-actions[bot]' | ||
git config user.email 'github-actions[bot]@users.noreply.github.com' | ||
git tag "development" -m "Development version" --force | ||
git push -f --tags | ||
if: matrix.target == 'x86_64-pc-windows-gnu' | ||
|
||
- name: Install stable toolchain | ||
uses: dtolnay/rust-toolchain@stable | ||
with: | ||
toolchain: stable | ||
|
||
- name: Cross build with all features | ||
uses: actions-rs/cargo@v1 | ||
with: | ||
use-cross: true | ||
command: build | ||
args: --release --target ${{ matrix.target }} --all-features --verbose | ||
|
||
- name: Update CHANGELOG | ||
id: changelog | ||
uses: requarks/changelog-action@v1 | ||
with: | ||
token: ${{ github.token }} | ||
tag: ${{ github.ref_name }} | ||
if: matrix.target == 'x86_64-pc-windows-gnu' | ||
|
||
- name: Compress binary | ||
run: | | ||
if [[ "${{ matrix.target }}" == *"linux"* ]]; then | ||
tar -czf ${{ matrix.asset_name }} target/${{ matrix.target }}/release/${{ matrix.artifact_name }} | ||
else | ||
zip -r ${{ matrix.asset_name }} target/${{ matrix.target }}/release/${{ matrix.artifact_name }} | ||
fi | ||
- name: Upload binaries to release | ||
uses: svenstaro/upload-release-action@v2 | ||
with: | ||
release_name: DAR to OAR Converter Development-${{ github.sha }} | ||
body: ${{ steps.changelog.outputs.changes }} | ||
repo_token: ${{ secrets.GITHUB_TOKEN }} | ||
file: ${{ matrix.asset_name }} | ||
asset_name: ${{ matrix.asset_name }} | ||
tag: "development" | ||
prerelease: true | ||
overwrite: true |
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,65 @@ | ||
name: Development Release GUI | ||
on: | ||
push: | ||
branches: | ||
- "development" | ||
workflow_dispatch: | ||
|
||
jobs: | ||
release: | ||
permissions: | ||
contents: write | ||
strategy: | ||
fail-fast: false | ||
matrix: | ||
platform: [macos-latest, ubuntu-20.04, windows-latest] | ||
runs-on: ${{ matrix.platform }} | ||
|
||
steps: | ||
- name: Checkout repository | ||
uses: actions/checkout@v3 | ||
|
||
- name: Install dependencies (ubuntu only) | ||
if: matrix.platform == 'ubuntu-20.04' | ||
# You can remove libayatana-appindicator3-dev if you don't use the system tray feature. | ||
run: | | ||
sudo apt-get update | ||
sudo apt-get install -y libgtk-3-dev libwebkit2gtk-4.0-dev libayatana-appindicator3-dev librsvg2-dev | ||
- name: Rust setup | ||
uses: dtolnay/rust-toolchain@stable | ||
|
||
- name: Rust cache | ||
uses: swatinem/rust-cache@v2 | ||
with: | ||
workspaces: "./src-tauri -> target" | ||
|
||
- name: Sync node version and setup cache | ||
uses: actions/setup-node@v3 | ||
with: | ||
node-version: "lts/*" | ||
|
||
- name: Install frontend dependencies | ||
run: npm install | ||
|
||
- name: Sync node version and setup cache | ||
uses: actions/cache@v3 | ||
with: | ||
path: | | ||
~/.npm | ||
${{ github.workspace }}/.next/cache | ||
# Generate a new cache whenever packages or source files change. | ||
key: ${{ runner.os }}-nextjs-${{ hashFiles('**/package-lock.json') }}-${{ hashFiles('**/*.js', '**/*.jsx', '**/*.ts', '**/*.tsx') }} | ||
# If source files changed but packages didn't, rebuild from a prior cache. | ||
restore-keys: | | ||
${{ runner.os }}-nextjs-${{ hashFiles('**/package-lock.json') }}- | ||
- name: Build the app | ||
uses: tauri-apps/tauri-action@v0 | ||
|
||
env: | ||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | ||
with: | ||
releaseName: "DAR to OAR Converter Development-${{ github.sha }}" # tauri-action replaces \_\_VERSION\_\_ with the app version. | ||
tagName: development | ||
prerelease: true |
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
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
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
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
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
Oops, something went wrong.