Skip to content

add github actions main.yml workflow #1

add github actions main.yml workflow

add github actions main.yml workflow #1

Workflow file for this run

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*