-
Notifications
You must be signed in to change notification settings - Fork 244
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #116 from umarcor/ci-containers
[ci] add workflow 'Containers'
- Loading branch information
Showing
5 changed files
with
78 additions
and
43 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 |
---|---|---|
@@ -0,0 +1,3 @@ | ||
FROM gcr.io/hdl-containers/debian/buster/impl | ||
|
||
ENV GHDL_PLUGIN_MODULE=ghdl |
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 |
---|---|---|
@@ -0,0 +1,16 @@ | ||
FROM gcr.io/hdl-containers/debian/buster/sim/osvb | ||
|
||
RUN apt-get update -qq \ | ||
&& DEBIAN_FRONTEND=noninteractive apt-get -y install --no-install-recommends \ | ||
g++ \ | ||
git \ | ||
make \ | ||
time \ | ||
&& apt-get autoclean && apt-get clean && apt-get -y autoremove \ | ||
&& rm -rf /var/lib/apt/lists/* \ | ||
&& mkdir -p /opt/riscv \ | ||
&& curl -fsSL https://github.com/stnolting/riscv-gcc-prebuilt/releases/download/rv32i-2.0.0/riscv32-unknown-elf.gcc-10.2.0.rv32i.ilp32.newlib.tar.gz | \ | ||
tar -xzf - -C /opt/riscv \ | ||
&& ls -al /opt/riscv | ||
|
||
ENV PATH $PATH:/opt/riscv/bin |
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 |
---|---|---|
@@ -0,0 +1,40 @@ | ||
name: Containers | ||
|
||
on: | ||
push: | ||
paths: | ||
- '.github/*.dockerfile' | ||
schedule: | ||
- cron: '0 0 * * 5' | ||
workflow_dispatch: | ||
|
||
jobs: | ||
|
||
Container: | ||
runs-on: ubuntu-latest | ||
strategy: | ||
fail-fast: false | ||
matrix: | ||
image: | ||
- impl | ||
- sim | ||
name: '🛳️ ${{ matrix.image }}' | ||
|
||
steps: | ||
|
||
- name: '🧰 Repository Checkout' | ||
uses: actions/checkout@v2 | ||
|
||
- name: '⛴️ Build neorv32/${{ matrix.image }}' | ||
run: docker build -t ghcr.io/stnolting/neorv32/${{ matrix.image }} - < .github/${{ matrix.image }}.dockerfile | ||
|
||
- name: '🔑 Login to ghcr.io' | ||
if: github.event_name != 'pull_request' | ||
uses: docker/login-action@v1 | ||
with: | ||
registry: ghcr.io | ||
username: gha | ||
password: ${{ github.token }} | ||
|
||
- name: '🛰️ Push image to ghcr.io' | ||
run: docker push ghcr.io/stnolting/neorv32/${{ matrix.image }} |
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