|
@@ -15,23 +15,35 @@ concurrency:
|
|
|
jobs:
|
|
|
test:
|
|
|
name: Test ARM64
|
|
|
- runs-on: ubuntu-latest
|
|
|
-
|
|
|
+ runs-on: arm64_runner
|
|
|
+
|
|
|
steps:
|
|
|
- name: Checkout code
|
|
|
uses: actions/checkout@v4
|
|
|
|
|
|
- - name: Set up QEMU
|
|
|
- uses: docker/setup-qemu-action@v3
|
|
|
+ - name: Install System Dependencies
|
|
|
+ run: sudo apt-get install -y pkg-config gcc libseccomp-dev
|
|
|
+
|
|
|
+ - name: Set up Go
|
|
|
+ uses: actions/setup-go@v4
|
|
|
+ with:
|
|
|
+ go-version: 1.20.6
|
|
|
+
|
|
|
+ - name: Install dependencies
|
|
|
+ run: go mod tidy
|
|
|
|
|
|
- - name: Set up Docker Buildx
|
|
|
- uses: docker/setup-buildx-action@v3
|
|
|
+ - name: Compile library
|
|
|
+ run: bash ./build/build_arm64.sh
|
|
|
|
|
|
- - name: Test ARM64
|
|
|
- uses: docker/build-push-action@v5
|
|
|
+ - name: Setup Python3.10
|
|
|
+ uses: actions/setup-python@v2
|
|
|
with:
|
|
|
- context: .
|
|
|
- file: ./dev/dockerfile-arm64-github-actions
|
|
|
- platforms: linux/arm64
|
|
|
- push: false
|
|
|
- tags: ghcr.io/langgenius/dify-sandbox:arm64-test
|
|
|
+ python-version: '3.10'
|
|
|
+
|
|
|
+ - name: Install Python dependencies
|
|
|
+ run: pip install httpx requests jinja2
|
|
|
+
|
|
|
+ - name: Run Intgeration tests
|
|
|
+ run: sudo go test -v github.com/langgenius/dify-sandbox/tests/integration_tests/...
|
|
|
+ env:
|
|
|
+ PYTHON_PATH: /usr/bin/python3.10
|