Debian Codegraph @

.github/workflows/chipdb.yml

raw symbols SCIP
1 name: Chipdb builder
2
3 on:
4 push:
5 branches:
6 - master
7 tags:
8 - '*'
9 pull_request:
10
11 env:
12 APICULA_IMAGE: pepijndevos/apicula:1.9.10.03
13
14 jobs:
15 build:
16 runs-on: ubuntu-latest
17 steps:
18 - uses: actions/checkout@v4
19 - name: Build all chipdbs
20 run: |
21 docker pull ${{ env.APICULA_IMAGE }}
22 docker run -v $(pwd):/usr/src/apicula ${{ env.APICULA_IMAGE }} make -j$(nproc)
23 - name: Set up Python
24 uses: actions/setup-python@v5
25 with:
26 python-version: '3.9'
27 - name: Build Python package
28 run: |
29 python -m pip install --upgrade pip
30 pip install --upgrade setuptools wheel twine vcs_versioning
31 python setup.py --version
32 python setup.py sdist bdist_wheel
33 # Validate that the resulting wheel can be executed
34 pip install "dist/apycula-$(python setup.py --version)-py3-none-any.whl"
35 gowin_pack --help
36 - name: Archive artifact
37 uses: actions/upload-artifact@v4
38 with:
39 name: python-dist
40 path: dist
41 - name: Publish to Pypi
42 if: startsWith(github.ref, 'refs/tags')
43 env:
44 TWINE_USERNAME: __token__
45 TWINE_PASSWORD: ${{ secrets.PYPI_TOKEN }}
46 run: |
47 twine upload --verbose dist/*
48 - name: Pack release data
49 if: startsWith(github.ref, 'refs/heads/master')
50 run: |
51 tar cvfz linux-x64-gowin-data.tgz apycula/*.msgpack.xz
52 - name: Upload to oss-cad-suite
53 uses: ncipollo/release-action@v1
54 if: hashFiles('linux-x64-gowin-data.tgz') != ''
55 with:
56 allowUpdates: True
57 prerelease: True
58 omitBody: True
59 omitBodyDuringUpdate: True
60 omitNameDuringUpdate: True
61 tag: 0.0.0.dev
62 artifacts: "linux-x64-gowin-data.tgz"
63 token: ${{ secrets.GITHUB_TOKEN }}
64
65 dev:
66 needs: [build]
67 uses: ./.github/workflows/toolchain.yml
68 with:
69 name: dev
70 yosys: main
71 nextpnr: main
72
73 stable:
74 needs: [build]
75 uses: ./.github/workflows/toolchain.yml
76 with:
77 name: stable
78 yosys: v0.68
79 nextpnr: nextpnr-0.11.1