Skip to content

Commit

Permalink
feat: 添加pr ci
Browse files Browse the repository at this point in the history
Signed-off-by: joshua <[email protected]>
  • Loading branch information
sujoshua committed Nov 17, 2024
1 parent 72f1cdc commit b9d31e6
Showing 1 changed file with 37 additions and 0 deletions.
37 changes: 37 additions & 0 deletions .github/workflows/pr.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,37 @@
name: CI for PR

on:
pull_request:
branches:
- main

jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v3

# 测试编译
- name: Use Node.js
uses: actions/setup-node@v3
with:
node-version: 18
- run: |
yarn install
yarn only-build
tar caf dist.tar.xz dist
env:
CI: true
#测试打包
- name: Set up QEMU
uses: docker/setup-qemu-action@v3
- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v3
- name: Build and Push Image
uses: docker/build-push-action@v5
with:
context: .
platforms: linux/amd64,linux/arm64
push: false

0 comments on commit b9d31e6

Please sign in to comment.