-
Notifications
You must be signed in to change notification settings - Fork 24
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
8 changed files
with
236 additions
and
5 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,64 @@ | ||
# Authors: | ||
# Unai Martinez-Corral | ||
# Lucas Teske | ||
# | ||
# Copyright 2019-2021 Unai Martinez-Corral <unai.martinezcorral@ehu.eus> | ||
# | ||
# Licensed under the Apache License, Version 2.0 (the "License"); | ||
# you may not use this file except in compliance with the License. | ||
# You may obtain a copy of the License at | ||
# | ||
# http://www.apache.org/licenses/LICENSE-2.0 | ||
# | ||
# Unless required by applicable law or agreed to in writing, software | ||
# distributed under the License is distributed on an "AS IS" BASIS, | ||
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. | ||
# See the License for the specific language governing permissions and | ||
# limitations under the License. | ||
# | ||
# SPDX-License-Identifier: Apache-2.0 | ||
|
||
name: 'apicula' | ||
|
||
on: | ||
pull_request: | ||
push: | ||
schedule: | ||
- cron: '0 0 * * 5' | ||
workflow_dispatch: | ||
repository_dispatch: | ||
types: [ apicula ] | ||
|
||
env: | ||
DOCKER_BUILDKIT: 1 | ||
|
||
jobs: | ||
|
||
apicula: | ||
runs-on: ubuntu-latest | ||
steps: | ||
|
||
- uses: actions/checkout@v2 | ||
with: | ||
submodules: recursive | ||
|
||
- run: echo "$(pwd)/.github/bin" >> $GITHUB_PATH | ||
|
||
- run: dockerBuild pkg:apicula apicula pkg | ||
- run: dockerBuild apicula apicula | ||
|
||
- run: dockerTestPkg apicula | ||
- run: dockerTest apicula | ||
|
||
- name: Login to DockerHub | ||
if: github.event_name != 'pull_request' && github.repository == 'hdl/containers' | ||
uses: docker/login-action@v1 | ||
with: | ||
username: ${{ secrets.DOCKER_USER }} | ||
password: ${{ secrets.DOCKER_PASS }} | ||
|
||
- run: dockerPush pkg:apicula | ||
if: github.event_name != 'pull_request' && github.repository == 'hdl/containers' | ||
|
||
- run: dockerPush apicula | ||
if: github.event_name != 'pull_request' && github.repository == 'hdl/containers' |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,40 @@ | ||
# Authors: | ||
# Unai Martinez-Corral | ||
# Lucas Teske | ||
# | ||
# Copyright 2019-2021 Unai Martinez-Corral <unai.martinezcorral@ehu.eus> | ||
# | ||
# Licensed under the Apache License, Version 2.0 (the "License"); | ||
# you may not use this file except in compliance with the License. | ||
# You may obtain a copy of the License at | ||
# | ||
# http://www.apache.org/licenses/LICENSE-2.0 | ||
# | ||
# Unless required by applicable law or agreed to in writing, software | ||
# distributed under the License is distributed on an "AS IS" BASIS, | ||
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. | ||
# See the License for the specific language governing permissions and | ||
# limitations under the License. | ||
# | ||
# SPDX-License-Identifier: Apache-2.0 | ||
|
||
FROM hdlc/build:build AS build | ||
|
||
RUN apt-get update -qq \ | ||
&& DEBIAN_FRONTEND=noninteractive apt-get -y install --no-install-recommends python3-setuptools python3-pip | ||
|
||
RUN mkdir /tmp/apicula \ | ||
&& cd /tmp/apicula \ | ||
&& pip3 install apycula --target /tmp/apicula | ||
|
||
#--- | ||
|
||
FROM scratch AS pkg | ||
COPY --from=build /tmp/apicula /apicula | ||
|
||
#--- | ||
|
||
FROM hdlc/build:base | ||
RUN apt-get update -qq \ | ||
&& DEBIAN_FRONTEND=noninteractive apt-get -y install --no-install-recommends python3-setuptools python3-pip \ | ||
&& pip3 install apycula |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,28 @@ | ||
#!/bin/sh | ||
|
||
# Authors: | ||
# Unai Martinez-Corral | ||
# | ||
# Copyright 2020-2021 Unai Martinez-Corral <unai.martinezcorral@ehu.eus> | ||
# | ||
# Licensed under the Apache License, Version 2.0 (the "License"); | ||
# you may not use this file except in compliance with the License. | ||
# You may obtain a copy of the License at | ||
# | ||
# http://www.apache.org/licenses/LICENSE-2.0 | ||
# | ||
# Unless required by applicable law or agreed to in writing, software | ||
# distributed under the License is distributed on an "AS IS" BASIS, | ||
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. | ||
# See the License for the specific language governing permissions and | ||
# limitations under the License. | ||
# | ||
# SPDX-License-Identifier: Apache-2.0 | ||
|
||
set -e | ||
|
||
cd $(dirname "$0") | ||
|
||
./_tree.sh | ||
|
||
./_todo.sh |
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,30 @@ | ||
#!/usr/bin/env sh | ||
|
||
# Authors: | ||
# Unai Martinez-Corral | ||
# | ||
# Copyright 2020-2021 Unai Martinez-Corral <unai.martinezcorral@ehu.eus> | ||
# | ||
# Licensed under the Apache License, Version 2.0 (the "License"); | ||
# you may not use this file except in compliance with the License. | ||
# You may obtain a copy of the License at | ||
# | ||
# http://www.apache.org/licenses/LICENSE-2.0 | ||
# | ||
# Unless required by applicable law or agreed to in writing, software | ||
# distributed under the License is distributed on an "AS IS" BASIS, | ||
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. | ||
# See the License for the specific language governing permissions and | ||
# limitations under the License. | ||
# | ||
# SPDX-License-Identifier: Apache-2.0 | ||
|
||
set -e | ||
|
||
cd $(dirname "$0") | ||
|
||
./_env.sh | ||
|
||
./smoke-tests/apicula.sh | ||
|
||
./_todo.sh |
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,31 @@ | ||
#!/usr/bin/env sh | ||
|
||
# Authors: | ||
# Unai Martinez-Corral | ||
# Lucas Teske | ||
# | ||
# Copyright 2020-2021 Unai Martinez-Corral <unai.martinezcorral@ehu.eus> | ||
# | ||
# Licensed under the Apache License, Version 2.0 (the "License"); | ||
# you may not use this file except in compliance with the License. | ||
# You may obtain a copy of the License at | ||
# | ||
# http://www.apache.org/licenses/LICENSE-2.0 | ||
# | ||
# Unless required by applicable law or agreed to in writing, software | ||
# distributed under the License is distributed on an "AS IS" BASIS, | ||
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. | ||
# See the License for the specific language governing permissions and | ||
# limitations under the License. | ||
# | ||
# SPDX-License-Identifier: Apache-2.0 | ||
|
||
set -e | ||
|
||
cd $(dirname "$0") | ||
|
||
./_env.sh | ||
|
||
./smoke-tests/nextpnr-gowin.sh | ||
|
||
./_todo.sh |
Submodule smoke-tests
updated
7 files
+0 −41 | CONTEXT.md | |
+36 −27 | README.md | |
+2 −0 | all.sh | |
+9 −0 | icesprog.sh | |
+9 −0 | iverilog.sh | |
+9 −0 | nextpnr-gowin.sh | |
+1 −0 | nextpnr.sh |