fix workflow #44
Workflow file for this run
This file contains hidden or 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
name: build | |
on: | |
push: | |
tags: | |
- '*' | |
jobs: | |
build: | |
strategy: | |
max-parallel: 1 | |
matrix: | |
arch: [x86_64, x86_64-musl] | |
runs-on: ubuntu-22.04 | |
env: | |
XBPS_TARGET_ARCH: ${{ matrix.arch }} | |
steps: | |
- name: free space | |
run: | | |
sudo rm -rf /usr/share/dotnet | |
sudo rm -rf /usr/local/lib/android | |
sudo rm -rf /opt/ghc | |
sudo rm -rf /opt/hostedtoolcache/CodeQL | |
- name: checkout librewolf-void | |
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: checkout xbps | |
uses: actions/checkout@v4 | |
with: | |
repository: void-linux/xbps | |
ref: 0.60.3 | |
path: xbps | |
- name: build and install xbps | |
run: | | |
sudo apt-get update | |
sudo apt-get install -y libarchive-dev | |
cd xbps | |
./configure --enable-rpath --prefix=/opt/xbps/usr | |
make -j4 | |
sudo make install clean | |
- name: copy librewolf into srcpkgs | |
run: cp -rv librewolf/srcpkgs/librewolf void-packages/srcpkgs | |
- name: build | |
run: | | |
export PATH="/opt/xbps/usr/bin/:$PATH" | |
cd void-packages | |
./xbps-src -m masterdir-${{ matrix.arch }} -A ${{ matrix.arch }} binary-bootstrap | |
./xbps-src pkg -j4 -m masterdir-${{ matrix.arch }} librewolf | |
- name: sign | |
env: | |
XBPS_PASSPHRASE: ${{ secrets.SIGN_PASS }} | |
working-directory: void-packages/hostdir/binpkgs/ | |
run: | | |
export PATH="/opt/xbps/usr/bin/:$PATH" | |
xbps-rindex -r $PWD | |
xbps-rindex -s --signedby "index-0 <[email protected]>" --privkey <(printf '%s' "${{ secrets.PRIV_KEY }}") $PWD | |
xbps-rindex -S --privkey <(printf '%s' "${{ secrets.PRIV_KEY }}") $PWD/*.xbps | |
xbps-rindex -c $PWD | |
- name: checksum | |
working-directory: void-packages/hostdir/binpkgs/ | |
run: | | |
sha256sum $(echo librewolf-*.${{ matrix.arch }}.xbps) | |
sha512sum $(echo librewolf-*.${{ matrix.arch }}.xbps) | |
- name: release | |
uses: softprops/action-gh-release@v2 | |
with: | |
files: | | |
void-packages/hostdir/binpkgs/librewolf* | |
void-packages/hostdir/binpkgs/*repodata |