Files
monero-gui/.gitea/workflows/build.yml
Bill 8b7ee2d8f0
Some checks failed
Build / docker-build (push) Failing after 36s
Additional build workflow troubleshooting
2024-07-22 14:34:04 -04:00

71 lines
2.2 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: Set up Docker BuildX
uses: docker/setup-buildx-action@v3
with:
config-inline: |
[registry."git.prettyhefty.com"]
- name: Login to Registry
uses: docker/login-action@v3
with:
registry: https://git.prettyhefty.com
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 .
# Debugging - run container
- name: Run Docker Container Without Removing
run: |
docker run --name build-container \
-v /workspace/Bill/monero-gui:/monero-gui \
-w /monero-gui monero:build-env-linux sh -c '
echo "Listing directory contents inside Docker:";
ls -la;
echo "Content of Makefile:";
cat Makefile;
make release-static -j3
' || true
# Debugging - extract logs
- name: Extract Docker container logs
if: always()
run: docker logs build-container
# Debugging - check state
- name: Inspect Docker Container State
if: always()
run: docker inspect build-container
# Debugging - remove container
- name: Clean Up Container
if: always()
run: docker rm -f build-container
- name: sha256sum
run: shasum -a256 /workspace/Bill/monero-gui/build/release/bin/monero-wallet-gui
- name: test qml
run: xvfb-run -a /workspace/Bill/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