-
Notifications
You must be signed in to change notification settings - Fork 27
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
14 changed files
with
241 additions
and
65 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
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
File renamed without changes.
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 |
---|---|---|
|
@@ -9,7 +9,7 @@ on: | |
|
||
jobs: | ||
build: | ||
runs-on: ubuntu-latest | ||
runs-on: ubuntu-20.04 | ||
strategy: | ||
matrix: | ||
arch: [aarch64, x86_64] | ||
|
@@ -58,13 +58,13 @@ jobs: | |
mkdir -p debian-gui/usr/share/icons/hicolor/128x128/apps | ||
mkdir -p debian-gui/usr/share/icons/hicolor/64x64/apps | ||
cp target/${{ matrix.arch }}-unknown-linux-gnu/release/node-gui debian-gui/usr/bin/ | ||
# Copy and convert icon files | ||
cp build-tools/assets/node-gui-icon_512.png debian-gui/usr/share/icons/hicolor/512x512/apps/mintlayer-node-gui.png | ||
convert build-tools/assets/node-gui-icon_512.png -resize 256x256 debian-gui/usr/share/icons/hicolor/256x256/apps/mintlayer-node-gui.png | ||
convert build-tools/assets/node-gui-icon_512.png -resize 128x128 debian-gui/usr/share/icons/hicolor/128x128/apps/mintlayer-node-gui.png | ||
convert build-tools/assets/node-gui-icon_512.png -resize 64x64 debian-gui/usr/share/icons/hicolor/64x64/apps/mintlayer-node-gui.png | ||
# Create .desktop file | ||
cat << EOF > debian-gui/usr/share/applications/mintlayer-node-gui.desktop | ||
[Desktop Entry] | ||
|
@@ -74,7 +74,7 @@ jobs: | |
Type=Application | ||
Categories=Utility;Network; | ||
EOF | ||
cat << EOF > debian-gui/DEBIAN/control | ||
Package: mintlayer-node-gui | ||
Version: ${{ steps.get_version.outputs.VERSION }} | ||
|
@@ -115,7 +115,7 @@ jobs: | |
mkdir -p rpm-gui/{BUILD,RPMS,SOURCES,SPECS,SRPMS} | ||
mkdir -p rpm-gui/BUILDROOT/mintlayer-node-gui-${{ steps.get_version.outputs.VERSION }}-1.x86_64 | ||
cp -r debian-gui/usr rpm-gui/BUILDROOT/mintlayer-node-gui-${{ steps.get_version.outputs.VERSION }}-1.x86_64/ | ||
cat << EOF > rpm-gui/SPECS/mintlayer-node-gui.spec | ||
Name: mintlayer-node-gui | ||
Version: ${{ steps.get_version.outputs.VERSION }} | ||
|
@@ -139,7 +139,7 @@ jobs: | |
* $(date "+%a %b %d %Y") Mintlayer <[email protected]> - ${{ steps.get_version.outputs.VERSION }}-1 | ||
- Initial RPM release | ||
EOF | ||
rpmbuild -bb --define "_topdir $(pwd)/rpm-gui" --buildroot $(pwd)/rpm-gui/BUILDROOT/mintlayer-node-gui-${{ steps.get_version.outputs.VERSION }}-1.x86_64 rpm-gui/SPECS/mintlayer-node-gui.spec | ||
mv rpm-gui/RPMS/x86_64/mintlayer-node-gui-${{ steps.get_version.outputs.VERSION }}-1.x86_64.rpm Mintlayer_Node_GUI_linux_${{ steps.get_version.outputs.VERSION }}_x86_64.rpm | ||
|
@@ -149,7 +149,7 @@ jobs: | |
mkdir -p rpm-node/{BUILD,RPMS,SOURCES,SPECS,SRPMS} | ||
mkdir -p rpm-node/BUILDROOT/mintlayer-node-${{ steps.get_version.outputs.VERSION }}-1.x86_64 | ||
cp -r debian-node/usr rpm-node/BUILDROOT/mintlayer-node-${{ steps.get_version.outputs.VERSION }}-1.x86_64/ | ||
cat << EOF > rpm-node/SPECS/mintlayer-node.spec | ||
Name: mintlayer-node | ||
Version: ${{ steps.get_version.outputs.VERSION }} | ||
|
@@ -168,18 +168,18 @@ jobs: | |
* $(date "+%a %b %d %Y") Mintlayer <[email protected]> - ${{ steps.get_version.outputs.VERSION }}-1 | ||
- Initial RPM release | ||
EOF | ||
rpmbuild -bb --define "_topdir $(pwd)/rpm-node" --buildroot $(pwd)/rpm-node/BUILDROOT/mintlayer-node-${{ steps.get_version.outputs.VERSION }}-1.x86_64 rpm-node/SPECS/mintlayer-node.spec | ||
mv rpm-node/RPMS/x86_64/mintlayer-node-${{ steps.get_version.outputs.VERSION }}-1.x86_64.rpm Mintlayer_Node_linux_${{ steps.get_version.outputs.VERSION }}_x86_64.rpm | ||
- name: Package Mintlayer Node (without GUI) as ZIP | ||
- name: Package Mintlayer Node (without GUI) as tar.gz | ||
run: | | ||
mkdir -p Mintlayer_Node_linux_${{ steps.get_version.outputs.VERSION }}_${{ matrix.arch }} | ||
IFS=',' read -ra BINARIES <<< "${{ inputs.binary_list }}" | ||
for binary in "${BINARIES[@]}"; do | ||
cp target/${{ matrix.arch }}-unknown-linux-gnu/release/$binary Mintlayer_Node_linux_${{ steps.get_version.outputs.VERSION }}_${{ matrix.arch }}/ | ||
done | ||
zip -r Mintlayer_Node_linux_${{ steps.get_version.outputs.VERSION }}_${{ matrix.arch }}.zip Mintlayer_Node_linux_${{ steps.get_version.outputs.VERSION }}_${{ matrix.arch }} | ||
tar -czvf Mintlayer_Node_linux_${{ steps.get_version.outputs.VERSION }}_${{ matrix.arch }}.tar.gz Mintlayer_Node_linux_${{ steps.get_version.outputs.VERSION }}_${{ matrix.arch }} | ||
- name: Upload GUI DEB Artifact | ||
uses: actions/upload-artifact@v4 | ||
|
@@ -207,8 +207,22 @@ jobs: | |
name: Mintlayer_Node_linux_${{ steps.get_version.outputs.VERSION }}_x86_64_rpm | ||
path: Mintlayer_Node_linux_${{ steps.get_version.outputs.VERSION }}_x86_64.rpm | ||
|
||
- name: Upload Node ZIP Artifact (without GUI) | ||
- name: List tar.gz files | ||
run: | | ||
echo "Matching tar.gz files:" | ||
ls -l Mintlayer_Node_linux_*.tar.gz | ||
- name: Upload Node tar.gz Artifact (without GUI) | ||
id: upload_artifact # Add this id to reference this step | ||
uses: actions/upload-artifact@v4 | ||
continue-on-error: true | ||
with: | ||
name: Mintlayer_Node_linux_${{ steps.get_version.outputs.VERSION }}_${{ matrix.arch }}_zip | ||
path: Mintlayer_Node_linux_${{ steps.get_version.outputs.VERSION }}_${{ matrix.arch }}.zip | ||
name: Mintlayer_Node_linux_${{ steps.get_version.outputs.VERSION }}_${{ matrix.arch }}_tar.gz | ||
path: Mintlayer_Node_linux_*.tar.gz | ||
if-no-files-found: warn | ||
|
||
- name: Check artifact upload status | ||
if: steps.upload_artifact.outcome == 'failure' | ||
run: | | ||
echo "Warning: Artifact upload failed or found duplicate files." | ||
echo "Please check the artifacts manually." |
File renamed without changes.
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,27 @@ | ||
# build-tools/win/create-license.ps1 | ||
|
||
$LICENSE_TEXT = @" | ||
MIT License | ||
Copyright (c) 2024 RBB LAB | ||
Permission is hereby granted, free of charge, to any person obtaining a copy | ||
of this software and associated documentation files (the "Software"), to deal | ||
in the Software without restriction, including without limitation the rights | ||
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell | ||
copies of the Software, and to permit persons to whom the Software is | ||
furnished to do so, subject to the following conditions: | ||
The above copyright notice and this permission notice shall be included in all | ||
copies or substantial portions of the Software. | ||
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR | ||
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, | ||
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE | ||
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER | ||
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, | ||
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE | ||
SOFTWARE. | ||
"@ | ||
|
||
$LICENSE_TEXT | Out-File -FilePath "LICENSE.txt" -Encoding ASCII |
Oops, something went wrong.