62 lines
1.5 KiB
YAML
62 lines
1.5 KiB
YAML
name: release-nightly
|
|
|
|
on:
|
|
push:
|
|
branches: [main]
|
|
|
|
jobs:
|
|
macos:
|
|
env:
|
|
RUNNER_TOOL_CACHE: /toolcache
|
|
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:
|
|
env:
|
|
RUNNER_TOOL_CACHE: /toolcache
|
|
runs-on: ubuntu-latest
|
|
steps:
|
|
- uses: actions/checkout@v4
|
|
with:
|
|
lfs: true
|
|
- uses: oven-sh/setup-bun@v2
|
|
- 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/pages-action@v1
|
|
with:
|
|
apiToken: ${{ secrets.CLOUDFLARE_API_TOKEN }}
|
|
accountId: ${{ secrets.CLOUDFLARE_ACCOUNT_ID }}
|
|
projectName: buf
|
|
directory: dist/proto-creator/browser
|