Skip to content

[WIP] More logging

[WIP] More logging #64

Workflow file for this run

name: CI
on:
- push
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
jobs:
check:
name: Check packages
runs-on: ubuntu-22.04
steps:
- name: Checkout code
uses: actions/checkout@v4
- name: Install Brioche
run: |
mkdir -p ~/.local/bin
curl -L https://development-content.brioche.dev/github.com/brioche-dev/brioche/branches/main/x86_64-linux/brioche -o ~/.local/bin/brioche
chmod +x ~/.local/bin/brioche
echo "$HOME/.local/bin" >> $GITHUB_PATH
- name: Check projects
run: |
for project in projects/*; do
echo "::group::$project"
brioche check -p "$project"
echo "::endgroup::"
done
# build:
# name: Build packages
# needs: [check]
# if: github.repository == 'brioche-dev/brioche-packages' && github.ref == 'refs/heads/wip/debug-publishing'
# runs-on: proxmox-runner-set
# steps:
# - name: Install system packages
# run: |
# sudo apt-get update
# sudo apt-get install -y curl
# - name: Checkout code
# uses: actions/checkout@v4
# - name: Install Brioche
# run: |
# mkdir -p ~/.local/bin
# curl -L https://development-content.brioche.dev/github.com/brioche-dev/brioche/branches/main/x86_64-linux/brioche -o ~/.local/bin/brioche
# chmod +x ~/.local/bin/brioche
# echo "$HOME/.local/bin" >> $GITHUB_PATH
# - name: Build projects
# run: |
# for project in projects/*; do
# echo "::group::$project"
# brioche build -p "$project" --check --sync
# echo "::endgroup::"
# done
# env:
# BRIOCHE_REGISTRY_PASSWORD: ${{ secrets.BRIOCHE_REGISTRY_PASSWORD }}
publish:
name: Publish packages
# needs: [build]
if: github.repository == 'brioche-dev/brioche-packages' && github.ref == 'refs/heads/wip/debug-publishing'
runs-on: ubuntu-22.04
steps:
- name: Checkout code
uses: actions/checkout@v4
- name: Install Brioche
run: |
mkdir -p ~/.local/bin
curl -L https://development-content.brioche.dev/github.com/brioche-dev/brioche/branches/wip/debug-publishing/x86_64-linux/brioche -o ~/.local/bin/brioche
chmod +x ~/.local/bin/brioche
echo "$HOME/.local/bin" >> $GITHUB_PATH
- name: Publish projects
run: |
for project in projects/*; do
echo "::group::$project"
export BRIOCHE_LOG_OUTPUT="/dev/stderr"
# export BRIOCHE_LOG_DEBUG='[]=debug'
brioche publish -p "$project"
echo "::endgroup::"
done
env:
BRIOCHE_REGISTRY_PASSWORD: ${{ secrets.BRIOCHE_REGISTRY_PASSWORD }}