-
Notifications
You must be signed in to change notification settings - Fork 8
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Build images on push, tweak Yosys installation
- Loading branch information
1 parent
f8fb7de
commit 4b38029
Showing
3 changed files
with
32 additions
and
17 deletions.
There are no files selected for viewing
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,20 +1,30 @@ | ||
name: Build and push images | ||
|
||
on: | ||
push: | ||
paths: | ||
- 'integration_test/**' | ||
pull_request: | ||
release: | ||
types: [published] | ||
workflow_dispatch: | ||
|
||
jobs: | ||
build-integration-test-image: | ||
name: Build and push Docker image for integration tests | ||
name: Integration Test Image | ||
runs-on: ubuntu-latest | ||
defaults: | ||
run: | ||
working-directory: integration_test | ||
steps: | ||
- name: Get CIRCT images repo | ||
uses: actions/checkout@v4 | ||
- name: Build and push image | ||
working-directory: ./integration_test | ||
- uses: actions/checkout@v4 | ||
- name: Setup Environment | ||
run: echo "GIT_TAG=$(echo $GITHUB_REF | cut -d / -f 3)" >> $GITHUB_ENV | ||
- name: Build Image | ||
run: | | ||
docker build . --tag ghcr.io/${{github.repository}}/circt-integration-test:$GIT_TAG | ||
- name: Push Image | ||
if: ${{ github.event_name == 'release' }} | ||
run: | | ||
TAG=$(echo $GITHUB_REF | cut -d / -f 3) | ||
echo ${{ secrets.CR_PAT }} | docker login ghcr.io -u $GITHUB_ACTOR --password-stdin | ||
docker build . --tag ghcr.io/${{github.repository}}/circt-integration-test:$TAG | ||
docker push ghcr.io/${{github.repository}}/circt-integration-test:$TAG | ||
docker push ghcr.io/${{github.repository}}/circt-integration-test:$GIT_TAG |
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
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