forked from Public/monero-gui
Compare commits
1 Commits
github-bui
...
master
| Author | SHA1 | Date | |
|---|---|---|---|
| ad1546f360 |
@@ -7,30 +7,44 @@ jobs:
|
|||||||
# Build image and push to container registry
|
# Build image and push to container registry
|
||||||
docker-build:
|
docker-build:
|
||||||
runs-on: ubuntu-20.04
|
runs-on: ubuntu-20.04
|
||||||
|
name: Build and Push
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v4
|
|
||||||
with:
|
# Checkout Repository
|
||||||
submodules: recursive
|
- name: Checkout repository
|
||||||
- uses: satackey/action-docker-layer-caching@v0.0.11
|
uses: actions/checkout@v4
|
||||||
if: "!startsWith(github.ref, 'refs/tags/v')"
|
with:
|
||||||
continue-on-error: true
|
submodules: recursive
|
||||||
with:
|
|
||||||
key: docker-linux-static-{hash}
|
# Install Docker
|
||||||
restore-keys: |
|
- name: Install docker
|
||||||
docker-linux-static-
|
uses: papodaca/install-docker-action@main
|
||||||
- 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
|
||||||
- name: prepare build environment
|
uses: docker/setup-buildx-action@v3
|
||||||
run: docker build --tag monero:build-env-linux --build-arg THREADS=3 --file Dockerfile.linux .
|
with:
|
||||||
- name: build
|
config-inline: |
|
||||||
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'
|
[registry."git.prettyhefty.com"]
|
||||||
- name: sha256sum
|
|
||||||
run: shasum -a256 /home/runner/work/monero-gui/monero-gui/build/release/bin/monero-wallet-gui
|
- name: Login to Registry
|
||||||
- name: test qml
|
uses: docker/login-action@v3
|
||||||
run: xvfb-run -a /home/runner/work/monero-gui/monero-gui/build/release/bin/monero-wallet-gui --test-qml
|
with:
|
||||||
- uses: actions/upload-artifact@v2
|
registry: https://git.prettyhefty.com
|
||||||
with:
|
username: ${{ gitea.repository_owner }}
|
||||||
name: ${{ github.job }}
|
password: ${{ secrets.REGISTRY_TOKEN }}
|
||||||
path: |
|
|
||||||
/home/runner/work/monero-gui/monero-gui/build/release/bin/monero-wallet-gui
|
- name: Setup environment
|
||||||
/home/runner/work/monero-gui/monero-gui/build/release/bin/monerod
|
run: cp Dockerfile.linux Dockerfile
|
||||||
|
|
||||||
|
- name: Build and push
|
||||||
|
uses: docker/build-push-action@v6
|
||||||
|
with:
|
||||||
|
context: .
|
||||||
|
push: true
|
||||||
|
tags: bill/monero:test
|
||||||
|
|
||||||
|
- 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
|
||||||
Reference in New Issue
Block a user