forked from Public/monero-gui
51 lines
1.7 KiB
YAML
51 lines
1.7 KiB
YAML
name: Build
|
|
run-name: Build Docker Image
|
|
on: [push, pull_request]
|
|
|
|
jobs:
|
|
|
|
# Build image and push to container registry
|
|
docker-build:
|
|
runs-on: ubuntu-20.04
|
|
steps:
|
|
- name: Checkout repository
|
|
uses: actions/checkout@v4
|
|
with:
|
|
submodules: recursive
|
|
|
|
- name: Install dependencies
|
|
run: sudo apt -y install xvfb libxcb-icccm4 libxcb-image0 libxcb-keysyms1 libxcb-randr0 libxcb-render-util0 libxcb-xkb1 libxcb-shape0 libxkbcommon-x11-0
|
|
|
|
- name: Set up Docker BuildX
|
|
uses: docker/setup-buildx-action@v3
|
|
with:
|
|
config-inline: |
|
|
[registry."gitea:3000"]
|
|
http = true
|
|
insecure = true
|
|
|
|
- name: Login to Registry
|
|
uses: docker/login-action@v3
|
|
with:
|
|
registry: http://gitea:3000
|
|
username: ${{ gitea.repository_owner }}
|
|
password: ${{ secrets.REGISTRY_TOKEN }}
|
|
|
|
- name: prepare build environment
|
|
run: docker build --tag monero:build-env-linux --build-arg THREADS=3 --file Dockerfile.linux .
|
|
|
|
- name: build
|
|
run: docker run --rm -v /home/runner/work/monero-gui/monero-gui:/monero-gui -w /monero-gui monero:build-env-linux sh -c 'make release-static -j3'
|
|
|
|
- name: sha256sum
|
|
run: shasum -a256 /home/runner/work/monero-gui/monero-gui/build/release/bin/monero-wallet-gui
|
|
|
|
- name: test qml
|
|
run: xvfb-run -a /home/runner/work/monero-gui/monero-gui/build/release/bin/monero-wallet-gui --test-qml
|
|
|
|
- uses: actions/upload-artifact@v4
|
|
with:
|
|
name: ${{ gitea.job }}
|
|
path: |
|
|
/home/runner/work/monero-gui/monero-gui/build/release/bin/monero-wallet-gui
|
|
/home/runner/work/monero-gui/monero-gui/build/release/bin/monerod |