Skip to content

Commit 19d942c

Browse files
authored
Merge pull request #114 from antmicro/acom/run-cron-ci
Run cron CI
2 parents a769108 + ca436c1 commit 19d942c

File tree

8 files changed

+104
-17
lines changed

8 files changed

+104
-17
lines changed

.github/workflows/ci.yml

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,11 @@
88

99
name: FPGA interchange CI tests
1010

11-
on: [push, pull_request]
11+
on:
12+
push:
13+
pull_request:
14+
schedule:
15+
- cron: '0 0 * * *'
1216

1317
jobs:
1418
Check-Repository:
Lines changed: 54 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,54 @@
1+
# Copyright (C) 2022 F4PGA Authors.
2+
#
3+
# Use of this source code is governed by a ISC-style
4+
# license that can be found in the LICENSE file or at
5+
# https://opensource.org/licenses/ISC
6+
#
7+
# SPDX-License-Identifier:ISC
8+
9+
name: update_conda_lock
10+
11+
on:
12+
push:
13+
pull_request:
14+
schedule:
15+
- cron: '0 3 * * *'
16+
workflow_dispatch:
17+
18+
jobs:
19+
update-locks:
20+
runs-on: ubuntu-18.04
21+
strategy:
22+
fail-fast: false
23+
steps:
24+
- name: Checkout Repository
25+
uses: actions/checkout@v3
26+
with:
27+
fetch-depth: 0
28+
submodules: 'recursive'
29+
ssh-key: ${{ secrets.SSH_DEPLOY_KEY }}
30+
31+
- name: Update Conda Lock
32+
uses: SymbiFlow/actions/update_conda_lock@c6142a4ec7859653352757eb8f7c4630f63f96e3
33+
with:
34+
conda_lock_file: 'conda_lock.yml'
35+
environment_file: 'environment.yml'
36+
37+
- name: Check diff
38+
id: check-diff
39+
run: |
40+
if [[ $(git status --porcelain --ignore-submodules) ]]; then echo "::set-output name=changes::true"; else echo "::set-output name=changes::false"; fi
41+
42+
- name: Issue Pull Request
43+
if: ${{ github.ref == 'refs/heads/main' && steps.check-diff.outputs.changes == 'true' }}
44+
uses: peter-evans/create-pull-request@v4
45+
with:
46+
token: ${{ secrets.GITHUB_TOKEN }}
47+
author: GitHub <[email protected]>
48+
commit-message: "[BOT] Conda Lock Update"
49+
title: "[BOT] Conda Lock Update"
50+
body: Pull Request created by the conda lock update workflow.
51+
branch: bot-conda-lock-update
52+
labels: bot-conda-lock-update,merge-if-green
53+
delete-branch: true
54+
signoff: true

Makefile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88

99
TOP_DIR := $(realpath $(dir $(lastword $(MAKEFILE_LIST))))
1010
REQUIREMENTS_FILE := requirements.txt
11-
ENVIRONMENT_FILE := environment.yml
11+
ENVIRONMENT_FILE := conda_lock.yml
1212

1313
# Paths
1414
RAPIDWRIGHT_PATH ?= $(TOP_DIR)/third_party/RapidWright

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ make env
1313
Enter the environment by running:
1414

1515
```
16-
make enter
16+
source env/conda/bin/activate fpga-interchange
1717
```
1818

1919
To update the RapidWright data run:

conda_lock.yml

Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,27 @@
1+
# Copyright (C) 2022 F4PGA Authors.
2+
#
3+
# Use of this source code is governed by a ISC-style
4+
# license that can be found in the LICENSE file or at
5+
# https://opensource.org/licenses/ISC
6+
#
7+
# SPDX-License-Identifier:ISC
8+
9+
name: fpga-interchange
10+
channels:
11+
- defaults
12+
- litex-hub
13+
dependencies:
14+
- litex-hub::capnproto-java=0.1.5_0012_g44a8c1e=20201104_165332
15+
- litex-hub::gcc-riscv64-elf-newlib=9.2.0=20201119_154229
16+
- litex-hub::iverilog=0_8_5850_g540555fc=20210730_085634
17+
- litex-hub::nextpnr-fpga_interchange
18+
- litex-hub::prjoxide=v0.0_398_g711770c=20210730_085634
19+
- litex-hub::prjxray-db
20+
- litex-hub::prjxray-tools
21+
- litex-hub::vtr-optimized
22+
- litex-hub::yosys
23+
- swig
24+
- packaging=21.3
25+
- pip=21.1.3
26+
- pip:
27+
- -r requirements.txt

environment.yml

Lines changed: 7 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -14,13 +14,14 @@ dependencies:
1414
- litex-hub::capnproto-java=0.1.5_0012_g44a8c1e=20201104_165332
1515
- litex-hub::gcc-riscv64-elf-newlib=9.2.0=20201119_154229
1616
- litex-hub::iverilog=0_8_5850_g540555fc=20210730_085634
17-
- litex-hub::nextpnr-fpga_interchange=0.2_33_g81e97086=20220302_164843_py37
17+
- litex-hub::nextpnr-fpga_interchange
1818
- litex-hub::prjoxide=v0.0_398_g711770c=20210730_085634
19-
- litex-hub::prjxray-db=0.0_257_g0a0adde=20220202_022309
20-
- litex-hub::prjxray-tools=0.1_2942_g5349556b=20220202_022309
21-
- litex-hub::vtr-optimized=8.0.0_5170_g81b5aa2a8=20220202_022309
22-
- litex-hub::yosys=0.13_39_g958c3a46a=20220202_022309_py37
19+
- litex-hub::prjxray-db
20+
- litex-hub::prjxray-tools
21+
- litex-hub::vtr-optimized
22+
- litex-hub::yosys
2323
- swig
24-
- pip
24+
- packaging=21.3
25+
- pip=21.1.3
2526
- pip:
2627
- -r requirements.txt

requirements.txt

Lines changed: 8 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,12 @@
1-
psutil
2-
ninja
3-
git+https://github.com/litghost/rapidyaml.git@fixup_python_packaging#egg=rapidyaml
41
fasm
5-
git+https://github.com/SymbiFlow/prjxray.git
6-
git+https://github.com/SymbiFlow/symbiflow-xc-fasm.git
7-
git+https://github.com/capnproto/pycapnp.git
8-
git+https://github.com/SymbiFlow/symbiflow-xc-fasm2bels.git
2+
ninja
3+
psutil
4+
pycapnp==v1.1.0
5+
rapidyaml==0.2.2
6+
7+
git+https://github.com/f4pga/prjxray.git
8+
git+https://github.com/chipsalliance/f4pga-xc-fasm.git
9+
git+https://github.com/SymbiFlow/f4pga-xc-fasm2bels.git
910
-e third_party/python-fpga-interchange
1011

1112
# Litex

0 commit comments

Comments
 (0)