Skip to content

Setup ci build

Setup ci build #2

Workflow file for this run

name: Release grabber
on:
pull_request:
types:
- opened
- synchronize
jobs:
build_linux:
runs-on: ubuntu-20.04
timeout-minutes: 10
steps:
- uses: actions/checkout@v4
- uses: actions/setup-node@v4
- name: Install agent dependencies
working-directory: ./packages/grabber
run: npm ci
- name: Run agent build
working-directory: .
run: |
bash ./grabber_build.sh linux x64
ls ./packages/grabber/build
build_windows:
runs-on: windows-2019
timeout-minutes: 10
steps:
- uses: actions/checkout@v4
- uses: actions/setup-java@v3
- uses: actions/setup-node@v4
- name: Install agent dependencies
working-directory: .\packages\grabber
run: npm ci
- name: Run agent build
working-directory: .
shell: cmd
run: |
grabber_build_win64.bat
dir .\packages\grabber\build\
# - name: Assemble with Gradle
# env:
# CHROME_BIN: C:\soft\GoogleChromePortable\GoogleChromePortable.exe
# run: .\gradlew.bat assemble
# - name: Warm up js browser
# shell: cmd
# env:
# CHROME_BIN: C:\soft\GoogleChromePortable\GoogleChromePortable.exe
# run: gradlew.bat jsBrowserTest || exit 0
# - name: Test with Gradle
# env:
# CHROME_BIN: C:\soft\GoogleChromePortable\GoogleChromePortable.exe
# run: .\gradlew.bat check
# - name: Upload check reports
# uses: actions/upload-artifact@v3
# if: always()
# with:
# name: build-reports-win
# path: build/reports/
# retention-days: 1