Skip to content

feat: allow empty package list #47

feat: allow empty package list

feat: allow empty package list #47

Workflow file for this run

name: Release
on:
push:
tags:
- 'v*'
jobs:
build:
runs-on: ubuntu-latest
permissions:
contents: write # to upload assets to releases
attestations: write # to upload assets attestation for build provenance
id-token: write # grant additional permission to attestation action to mint the OIDC token permission
steps:
- uses: actions/checkout@v5
- name: Set up Go
uses: actions/setup-go@v6
with:
go-version-file: go.mod
- name: Install Build Dependencies
run: |
sudo apt-get update
sudo apt-get install -y libbtrfs-dev make gcc gcc-aarch64-linux-gnu
- name: Build
run: |
./set_new_version.sh ${{ github.ref_name }}
go get ./...
make BINARY_NAME=vib-amd64 build
mv build/vib-amd64 ./
make clean
GOARCH=arm64 CGO_ENABLED=1 CC=aarch64-linux-gnu-gcc make BINARY_NAME=vib-arm64 build
mv build/vib-arm64 ./
- name: Build plugins
run: |
go get ./...
make build-plugins
tar czvf plugins-amd64.tar.gz build/plugins
make clean
GOARCH=arm64 CGO_ENABLED=1 CC=aarch64-linux-gnu-gcc make build-plugins
tar czvf plugins-arm64.tar.gz build/plugins
- name: Upload a Release Asset
if: github.repository == 'Vanilla-OS/Vib'
uses: softprops/action-gh-release@v2
with:
files: |
vib*
plugins*.tar.gz
- name: Attest generated files
if: github.repository == 'Vanilla-OS/Vib'
id: attest
uses: actions/attest-build-provenance@v2
with:
subject-path: 'vib*, plugins*.tar.gz'