fix: ensure cacert is present in /nix/store in image #426
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: Buck2 build | |
on: | |
pull_request: | |
branches: [main] | |
types: [opened, synchronize, labeled, unlabeled] | |
jobs: | |
buck2-build: | |
name: Buck2 Build | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v3 | |
- uses: cachix/install-nix-action@v22 | |
with: | |
github_access_token: ${{ secrets.GITHUB_TOKEN }} | |
- name: Prepare Buck2 build args from labels | |
id: prepare_args | |
run: | | |
ARGS="" | |
cat <<EOF > labels.json | |
${{ toJSON(github.event.pull_request.labels.*.name) }} | |
EOF | |
for LABEL in dashboard consent core; do | |
case "$LABEL" in | |
dashboard|consent) | |
ARGS+=" //apps/$LABEL:$LABEL" | |
;; | |
core) | |
ARGS+=" //core/api:api" | |
;; | |
esac | |
done | |
echo "Prepared args: $ARGS" | |
echo "args=$ARGS" >> "$GITHUB_OUTPUT" | |
- name: Buck2 build | |
run: nix develop -c buck2 build ${{ steps.prepare_args.outputs.args }} |