88 lines
2.1 KiB
YAML
88 lines
2.1 KiB
YAML
name: Build x86
|
|
permissions:
|
|
actions: none
|
|
checks: none
|
|
contents: none
|
|
deployments: none
|
|
issues: none
|
|
packages: none
|
|
pull-requests: none
|
|
repository-projects: none
|
|
security-events: none
|
|
statuses: none
|
|
|
|
on:
|
|
workflow_dispatch:
|
|
|
|
jobs:
|
|
check_images:
|
|
runs-on: self-hosted
|
|
|
|
steps:
|
|
- name: Checkout repo
|
|
uses: actions/checkout@v2
|
|
with:
|
|
path: bromite
|
|
fetch-depth: 1
|
|
|
|
- name: Get current chromium version
|
|
shell: bash
|
|
run: |
|
|
export VERSION=$( cat ./bromite/build/RELEASE )
|
|
echo Current version is $VERSION
|
|
echo "VERSION=$VERSION" >> $GITHUB_ENV
|
|
|
|
- name: Check build deps image
|
|
uses: uazo/bromite-buildtools/images/build-deps@master
|
|
with:
|
|
version: ${{ env.VERSION }}
|
|
|
|
- name: Check chromium image
|
|
uses: uazo/bromite-buildtools/images/chr-source@master
|
|
with:
|
|
version: ${{ env.VERSION }}
|
|
|
|
- name: Check bromite image
|
|
uses: uazo/bromite-buildtools/images/bromite-source@master
|
|
with:
|
|
version: ${{ env.VERSION }}
|
|
sha: 9109417e415f9f0aa204dc3e1391138fa5e13bf8 #${{ github.sha }}
|
|
|
|
- name: Check bromite builder
|
|
uses: uazo/bromite-buildtools/images/bromite-build@master
|
|
with:
|
|
sha: 9109417e415f9f0aa204dc3e1391138fa5e13bf8 #${{ github.sha }}
|
|
|
|
build:
|
|
runs-on: self-hosted
|
|
needs: check_images
|
|
if: success()
|
|
|
|
services:
|
|
redis:
|
|
image: redis
|
|
options: >-
|
|
--health-cmd "redis-cli ping"
|
|
--health-interval 10s
|
|
--health-timeout 5s
|
|
--health-retries 5
|
|
gomaserver:
|
|
image: uazo/goma-server
|
|
ports:
|
|
- 5050:5050
|
|
volumes:
|
|
- /tmp/proxy:/tmp/proxy
|
|
|
|
# container:
|
|
# image: uazo/bromite:${{ github.sha }}
|
|
# volumes:
|
|
# - /storage/bromite/${{ env.VERSION }}/${{ github.sha }}:/home/lg/working_dir/artifacs
|
|
# - /tmp/proxy:/tmp/proxy
|
|
|
|
steps:
|
|
- name: Build Bromite
|
|
shell: bash
|
|
run: |
|
|
./start-build.sh
|
|
|