Skip to content

Commit

Permalink
ci: Build cclyzer++ before building dist image
Browse files Browse the repository at this point in the history
  • Loading branch information
langston-barrett committed Oct 7, 2022
1 parent b62d2c1 commit 4fcf5e3
Showing 1 changed file with 28 additions and 1 deletion.
29 changes: 28 additions & 1 deletion .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -129,9 +129,36 @@ jobs:
password: ${{ secrets.GITHUB_TOKEN }}

# TODO(lb): Figure out how to tag these images with the version number
- name: Build and push dev and dist images
- name: Build and push dev image
run: |
env PUSH=1 ./scripts/gha-docker-build "dev" "cclyzerpp-dev"
# TODO(lb): Reduce duplication with build job
- name: Build
run: |
if [[ "${GITHUB_EVENT_NAME}" == "pull_request" ]]; then
ref="${ACTUAL_GITHUB_SHA_ON_PULL_REQUEST}"
else
ref="${GITHUB_SHA}"
fi
docker run \
--rm \
--mount type=bind,src=$PWD,target=/work \
--workdir /work \
"ghcr.io/galoisinc/cclyzerpp-dev:${ref}" \
cmake -G Ninja -B build -S .
docker run \
--rm \
--mount type=bind,src=$PWD,target=/work \
--workdir /work \
"ghcr.io/galoisinc/cclyzerpp-dev:${ref}" \
cmake --build build -j $(nproc)
# TODO(lb): Figure out how to tag these images with the version number
- name: Build and push dist image
run: |
env PUSH=1 ./scripts/gha-docker-build "dist" "cclyzerpp-dist"
- uses: ncipollo/release-action@v1
Expand Down

0 comments on commit 4fcf5e3

Please sign in to comment.