60 lines
1.5 KiB
YAML
60 lines
1.5 KiB
YAML
name: release-nightly
|
|
|
|
on:
|
|
push:
|
|
branches: [main]
|
|
|
|
jobs:
|
|
macos:
|
|
runs-on: macos-arm64
|
|
steps:
|
|
- uses: actions/checkout@v4
|
|
with:
|
|
lfs: true
|
|
|
|
- name: Install NPM Packages
|
|
run: bun install
|
|
|
|
- name: Run tests
|
|
run: ng test --no-watch --no-progress --browsers=ChromeHeadless
|
|
|
|
- name: Build MacOS
|
|
run: bunx tauri build && echo 0
|
|
|
|
- uses: actions/upload-artifact@v3
|
|
with:
|
|
name: BufPiv_main
|
|
path: src-tauri/target/release/bundle/macos/
|
|
web-demo:
|
|
runs-on: ubuntu-22.04
|
|
steps:
|
|
- uses: actions/checkout@v4
|
|
with:
|
|
lfs: true
|
|
- uses: oven-sh/setup-bun@v2
|
|
- uses: actions/setup-node@v4
|
|
with:
|
|
node-version: 20
|
|
- uses: browser-actions/setup-chrome@v1
|
|
id: setup-chrome
|
|
with:
|
|
install-dependencies: true
|
|
- name: Set Chrome binary variable
|
|
run: echo "CHROME_BIN=${{ steps.setup-chrome.outputs.chrome-path }}" > "$GITHUB_ENV"
|
|
|
|
- name: Install NPM Packages
|
|
run: bun install
|
|
|
|
- name: Run tests
|
|
run: bunx ng test --no-watch --no-progress --browsers=ChromeHeadlessNoSandbox
|
|
|
|
- name: Build Web Dist
|
|
run: bun run build
|
|
|
|
- name: Publish to Cloudflare Pages
|
|
uses: cloudflare/wrangler-action@v3
|
|
with:
|
|
apiToken: ${{ secrets.CLOUDFLARE_API_TOKEN }}
|
|
accountId: ${{ secrets.CLOUDFLARE_ACCOUNT_ID }}
|
|
command: pages deploy dist/proto-creator/browser --project-name=bufpiv
|