Skip to content

Commit

Permalink
Update GH Actions workflow to build and sync each project
Browse files Browse the repository at this point in the history
  • Loading branch information
kylewlacy committed Apr 16, 2024
1 parent 60db51a commit f62245a
Showing 1 changed file with 27 additions and 0 deletions.
27 changes: 27 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,35 @@ on:
- push

jobs:
build:
name: Build packages
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/main'
runs-on: ubuntu-22.04
steps:
Expand Down

0 comments on commit f62245a

Please sign in to comment.