Skip to content

Commit

Permalink
add github actions main.yml workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
index-0 committed Jan 30, 2024
1 parent 137a0f1 commit 977c978
Showing 1 changed file with 60 additions and 0 deletions.
60 changes: 60 additions & 0 deletions .github/workflows/main.yml
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*

0 comments on commit 977c978

Please sign in to comment.