forked from Public/monero-gui
Compare commits
4 Commits
master
...
github-bui
| Author | SHA1 | Date | |
|---|---|---|---|
| 9ec4749244 | |||
| 7afe4a3136 | |||
| e3b20fa518 | |||
| 96e8503960 |
@@ -7,44 +7,30 @@ 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
|
||||||
# Checkout Repository
|
|
||||||
- name: Checkout repository
|
|
||||||
uses: actions/checkout@v4
|
|
||||||
with:
|
with:
|
||||||
submodules: recursive
|
submodules: recursive
|
||||||
|
- uses: satackey/action-docker-layer-caching@v0.0.11
|
||||||
# Install Docker
|
if: "!startsWith(github.ref, 'refs/tags/v')"
|
||||||
- name: Install docker
|
continue-on-error: true
|
||||||
uses: papodaca/install-docker-action@main
|
|
||||||
|
|
||||||
- name: Set up Docker BuildX
|
|
||||||
uses: docker/setup-buildx-action@v3
|
|
||||||
with:
|
with:
|
||||||
config-inline: |
|
key: docker-linux-static-{hash}
|
||||||
[registry."git.prettyhefty.com"]
|
restore-keys: |
|
||||||
|
docker-linux-static-
|
||||||
- name: Login to Registry
|
- name: install dependencies
|
||||||
uses: docker/login-action@v3
|
run: sudo apt -y install xvfb libxcb-icccm4 libxcb-image0 libxcb-keysyms1 libxcb-randr0 libxcb-render-util0 libxcb-xkb1 libxcb-shape0 libxkbcommon-x11-0
|
||||||
with:
|
- name: prepare build environment
|
||||||
registry: https://git.prettyhefty.com
|
run: docker build --tag monero:build-env-linux --build-arg THREADS=3 --file Dockerfile.linux .
|
||||||
username: ${{ gitea.repository_owner }}
|
- name: build
|
||||||
password: ${{ secrets.REGISTRY_TOKEN }}
|
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: Setup environment
|
|
||||||
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
|
- name: sha256sum
|
||||||
run: shasum -a256 /workspace/Bill/monero-gui/build/release/bin/monero-wallet-gui
|
run: shasum -a256 /home/runner/work/monero-gui/monero-gui/build/release/bin/monero-wallet-gui
|
||||||
|
|
||||||
- name: test qml
|
- name: test qml
|
||||||
run: xvfb-run -a /workspace/Bill/monero-gui/build/release/bin/monero-wallet-gui --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@v2
|
||||||
|
with:
|
||||||
|
name: ${{ github.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
|
||||||
Reference in New Issue
Block a user