-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
add github actions main.yml workflow
- Loading branch information
Showing
1 changed file
with
60 additions
and
0 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,60 @@ | ||
name: build | ||
|
||
on: | ||
push: | ||
tags: | ||
- '*' | ||
|
||
jobs: | ||
build: | ||
runs-on: ubuntu-latest | ||
|
||
steps: | ||
- name: checkout librewolf-voidlinux | ||
uses: actions/checkout@v4 | ||
with: | ||
ref: master | ||
path: librewolf | ||
|
||
- name: checkout void-packages | ||
uses: actions/checkout@v4 | ||
with: | ||
repository: void-linux/void-packages | ||
ref: master | ||
path: void-packages | ||
|
||
- name: copying | ||
run: cp -rv librewolf/srcpkgs/librewolf void-packages/srcpkgs | ||
|
||
- name: prepare xbps-static | ||
run: | | ||
mkdir -p /opt/xbps | ||
curl -LO http://repo-default.voidlinux.org/static/xbps-static-latest.x86_64-musl.tar.xz | ||
tar xvf xbps-static-latest.x86_64-musl.tar.xz -C /opt/xbps | ||
- name: building x86_64 | ||
run: | | ||
export PATH="/opt/xbps/usr/bin/:$PATH" | ||
cd void-packages | ||
./xbps-src -m masterdir-x86_64 -A x86_64 binary-bootstrap | ||
./xbps-src pkg -j4 -m masterdir-x86_64 librewolf | ||
- name: building x86_64-musl | ||
run: | | ||
export PATH="/opt/xbps/usr/bin/:$PATH" | ||
cd void-packages | ||
./xbps-src -m masterdir-x86_64-musl -A x86_64-musl binary-bootstrap | ||
./xbps-src pkg -j4 -m masterdir-x86_64-musl librewolf | ||
- name: checksums | ||
working-directory: void-packages/hostdir/binpkgs/ | ||
run: | | ||
sha256sum $(echo librewolf-*.x86_64.xbps) | tee $(echo librewolf-*.x86_64.xbps).sha256sum | ||
sha512sum $(echo librewolf-*.x86_64.xbps) | tee $(echo librewolf-*.x86_64.xbps).sha512sum | ||
sha256sum $(echo librewolf-*.x86_64-musl.xbps) | tee $(echo librewolf-*.x86_64-musl.xbps).sha256sum | ||
sha512sum $(echo librewolf-*.x86_64-musl.xbps) | tee $(echo librewolf-*.x86_64-musl.xbps).sha512sum | ||
- name: release | ||
uses: softprops/action-gh-release@v1 | ||
with: | ||
files: void-packages/hostdir/binpkgs/librewolf* |