CI #36
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
name: CI | |
on: | |
push: | |
branches: [main] | |
pull_request: | |
branches: [main] | |
workflow_dispatch: | |
permissions: | |
contents: write | |
jobs: | |
build: | |
runs-on: ubuntu-22.04 | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v3 | |
with: | |
fetch-depth: 0 | |
- name: Install build tools | |
run: sudo apt-get update && sudo apt-get install debhelper build-essential devscripts pkg-config libargon2-dev -y | |
env: | |
DEBIAN_FRONTEND: noninteractive | |
- name: Build package | |
run: |+ | |
make package_build | |
cd .. | |
echo "Result: $(ls *.deb)" | |
sha256sum *.deb > checksums.txt | |
sha512sum *.deb > checksums512.txt | |
cp *.deb checksums.txt checksums512.txt ${{ github.workspace }}/ | |
env: | |
GH_TOKEN: ${{ github.token }} | |
- name: Store package | |
uses: actions/upload-artifact@v3 | |
with: | |
name: deb-package | |
path: | | |
*.deb | |
checksums.txt | |
checksums512.txt | |
retention-days: 10 | |
# yaml-language-server: $schema=https://raw.githubusercontent.com/SchemaStore/schemastore/master/src/schemas/json/github-workflow.json |