-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Bumped build dep and added build workflow (#27)
see: https://github.com/andreasgriffin/bitcoin-safe/security/dependabot/27 and https://github.com/andreasgriffin/bitcoin-safe/security/dependabot/26
- Loading branch information
1 parent
b1c54d8
commit 9159c54
Showing
10 changed files
with
159 additions
and
25 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,66 @@ | ||
name: Build AppImage Test | ||
|
||
on: | ||
workflow_dispatch: | ||
pull_request: | ||
types: [labeled] | ||
branches: | ||
- main | ||
|
||
jobs: | ||
build: | ||
if: github.event_name == 'workflow_dispatch' || (github.event_name == 'pull_request' && github.event.label.name == 'run-build-test') | ||
runs-on: ubuntu-latest | ||
- name: Checkout repository | ||
uses: actions/checkout@v3 | ||
with: | ||
fetch-depth: 0 # Fetch all history for all branches and tags | ||
|
||
|
||
- name: Set up Python environment | ||
uses: actions/setup-python@v4 | ||
with: | ||
python-version: '3.10' | ||
|
||
- name: Setup xvfb (Linux) | ||
if: runner.os == 'Linux' | ||
run: | | ||
sudo apt-get update | ||
sudo apt-get install -y xvfb \ | ||
libxkbcommon-x11-0 \ | ||
libxcb-icccm4 \ | ||
libxcb-image0 \ | ||
libxcb-keysyms1 \ | ||
libxcb-randr0 \ | ||
libxcb-render-util0 \ | ||
libxcb-xinerama0 \ | ||
libxcb-xinput0 \ | ||
libxcb-xfixes0 \ | ||
libxcb-shape0 \ | ||
libglib2.0-0 \ | ||
libgl1-mesa-dev \ | ||
'^libxcb.*-dev' \ | ||
libx11-xcb-dev \ | ||
libglu1-mesa-dev \ | ||
libxrender-dev \ | ||
libxi-dev \ | ||
libxkbcommon-dev \ | ||
libxkbcommon-x11-dev \ | ||
libsecp256k1-0 | ||
- name: Install Python dependencies | ||
run: | | ||
python -m pip install --upgrade pip | ||
pip install poetry | ||
poetry install | ||
- name: Run build script | ||
run: poetry run python tools/build.py --targets appimage --commit None | ||
|
||
|
||
- name: Check for AppImage file | ||
run: | | ||
if [ -z "$(find dist -type f -name '*.AppImage')" ]; then | ||
echo "AppImage file is missing" | ||
exit 1 | ||
fi |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,73 @@ | ||
name: Build Windows Test | ||
|
||
on: | ||
workflow_dispatch: | ||
pull_request: | ||
types: [labeled] | ||
branches: | ||
- main | ||
|
||
jobs: | ||
build: | ||
if: github.event_name == 'workflow_dispatch' || (github.event_name == 'pull_request' && github.event.label.name == 'run-build-test') | ||
runs-on: ubuntu-latest | ||
- name: Checkout repository | ||
uses: actions/checkout@v3 | ||
with: | ||
fetch-depth: 0 # Fetch all history for all branches and tags | ||
|
||
|
||
- name: Set up Python environment | ||
uses: actions/setup-python@v4 | ||
with: | ||
python-version: '3.10' | ||
|
||
- name: Setup xvfb (Linux) | ||
if: runner.os == 'Linux' | ||
run: | | ||
sudo apt-get update | ||
sudo apt-get install -y xvfb \ | ||
libxkbcommon-x11-0 \ | ||
libxcb-icccm4 \ | ||
libxcb-image0 \ | ||
libxcb-keysyms1 \ | ||
libxcb-randr0 \ | ||
libxcb-render-util0 \ | ||
libxcb-xinerama0 \ | ||
libxcb-xinput0 \ | ||
libxcb-xfixes0 \ | ||
libxcb-shape0 \ | ||
libglib2.0-0 \ | ||
libgl1-mesa-dev \ | ||
'^libxcb.*-dev' \ | ||
libx11-xcb-dev \ | ||
libglu1-mesa-dev \ | ||
libxrender-dev \ | ||
libxi-dev \ | ||
libxkbcommon-dev \ | ||
libxkbcommon-x11-dev \ | ||
libsecp256k1-0 | ||
- name: Install Python dependencies | ||
run: | | ||
python -m pip install --upgrade pip | ||
pip install poetry | ||
poetry install | ||
- name: Run build script | ||
run: poetry run python tools/build.py --targets windows --commit None | ||
|
||
|
||
- name: Check for portable EXE file | ||
run: | | ||
if [ -z "$(find dist -type f -name '*portable.exe')" ]; then | ||
echo "Portable EXE file is missing" | ||
exit 1 | ||
fi | ||
- name: Check for setup EXE file | ||
run: | | ||
if [ -z "$(find dist -type f -name '*setup.exe')" ]; then | ||
echo "Setup EXE file is missing" | ||
exit 1 | ||
fi |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters