Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

GH action for snapshot #48

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
51 changes: 51 additions & 0 deletions .github/workflows/snapshot.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,51 @@
name: Snapshot
on:
workflow_dispatch: {}
push:
branches:
- master

jobs:
snapshot:
name: Snapshot
runs-on: macos-12
steps:
- name: Checkout code
uses: actions/checkout@v4
- name: Rust setup
run: |
curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh -s -- -y
echo "${HOME}/.cargo/bin" >> $GITHUB_PATH

rustc --version
- name: NodeJS setup
uses: actions/setup-node@v4
with:
node-version: 20
cache: 'npm'
- name: Create DMG setup
run: |
git clone --depth 1 --branch v1.2.1 https://github.com/create-dmg/create-dmg.git /tmp/create-dmg
cd /tmp/create-dmg
make install
#
#
- name: Snapshot
run: |
rustup target add aarch64-apple-darwin
rustup target add x86_64-apple-darwin

yarn install
yarn package-and-build
#
#
- name: Publish artifacts aarch64
uses: actions/upload-artifact@v3
with:
path: src-tauri/target/verve_aarch64.dmg
name: verve_aarch64.dmg
- name: Publish artifacts x86_64
uses: actions/upload-artifact@v3
with:
path: src-tauri/target/verve_x86_64.dmg
name: verve_x86_64.dmg