Skip to content

Commit 088240c

Browse files
authored
Merge branch 'YosysHQ:main' into master
2 parents 6c1463c + 7f7ad87 commit 088240c

File tree

97 files changed

+2093
-689
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

97 files changed

+2093
-689
lines changed

.github/workflows/codeql.yml

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,9 @@ jobs:
1616
- name: Checkout repository
1717
uses: actions/checkout@v4
1818
with:
19-
submodules: true
19+
submodules: true
20+
persist-credentials: false
21+
2022
- name: Initialize CodeQL
2123
uses: github/codeql-action/init@v3
2224
with:

.github/workflows/extra-builds.yml

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,8 @@ jobs:
2525
steps:
2626
- uses: actions/checkout@v4
2727
with:
28-
submodules: true
28+
submodules: true
29+
persist-credentials: false
2930
- name: Build
3031
run: make vcxsrc YOSYS_VER=latest
3132
- uses: actions/upload-artifact@v4
@@ -59,7 +60,8 @@ jobs:
5960
steps:
6061
- uses: actions/checkout@v4
6162
with:
62-
submodules: true
63+
submodules: true
64+
persist-credentials: false
6365
- name: Build
6466
run: |
6567
WASI_SDK=wasi-sdk-19.0
@@ -95,6 +97,7 @@ jobs:
9597
- uses: actions/checkout@v4
9698
with:
9799
submodules: true
100+
persist-credentials: false
98101
- uses: cachix/install-nix-action@v26
99102
with:
100103
install_url: https://releases.nixos.org/nix/nix-2.18.1/install

.github/workflows/prepare-docs.yml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ jobs:
2020
# only run on push *or* pull_request, not both
2121
concurrent_skipping: ${{ env.docs_export && 'never' || 'same_content_newer'}}
2222
- id: docs_var
23-
run: echo "docs_export=${{ env.docs_export }}" >> $GITHUB_OUTPUT
23+
run: echo "docs_export=${docs_export}" >> $GITHUB_OUTPUT
2424

2525
prepare-docs:
2626
# docs builds are needed for anything on main, any tagged versions, and any tag
@@ -47,12 +47,12 @@ jobs:
4747
echo "ENABLE_VERIFIC_LIBERTY := 1" >> Makefile.conf
4848
echo "ENABLE_VERIFIC_YOSYSHQ_EXTENSIONS := 1" >> Makefile.conf
4949
echo "ENABLE_CCACHE := 1" >> Makefile.conf
50-
make -j${{ env.procs }} ENABLE_LTO=1
50+
make -j$procs ENABLE_LTO=1
5151
5252
- name: Prepare docs
5353
shell: bash
5454
run:
55-
make docs/prep -j${{ env.procs }} TARGETS= EXTRA_TARGETS=
55+
make docs/prep -j$procs TARGETS= EXTRA_TARGETS=
5656

5757
- name: Upload artifact
5858
uses: actions/upload-artifact@v4
@@ -72,7 +72,7 @@ jobs:
7272
- name: Test build docs
7373
shell: bash
7474
run: |
75-
make -C docs html -j${{ env.procs }} TARGETS= EXTRA_TARGETS=
75+
make -C docs html -j$procs TARGETS= EXTRA_TARGETS=
7676
7777
- name: Trigger RTDs build
7878
if: ${{ needs.check_docs_rebuild.outputs.docs_export == 'true' }}

.github/workflows/source-vendor.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@ jobs:
1010
uses: actions/checkout@v4
1111
with:
1212
submodules: 'recursive'
13+
persist-credentials: false
1314

1415
- name: Create clean tarball
1516
run: |

.github/workflows/test-build.yml

Lines changed: 10 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -46,6 +46,7 @@ jobs:
4646
uses: actions/checkout@v4
4747
with:
4848
submodules: true
49+
persist-credentials: false
4950

5051
- name: Setup environment
5152
uses: ./.github/actions/setup-build-env
@@ -91,6 +92,8 @@ jobs:
9192
steps:
9293
- name: Checkout Yosys
9394
uses: actions/checkout@v4
95+
with:
96+
persist-credentials: false
9497

9598
- name: Setup environment
9699
uses: ./.github/actions/setup-build-env
@@ -117,7 +120,7 @@ jobs:
117120
uses: actions/cache@v4
118121
with:
119122
path: .local/
120-
key: ${{ matrix.os }}-${{ env.IVERILOG_GIT }}
123+
key: ${{ matrix.os }}-${IVERILOG_GIT}
121124

122125
- name: Build iverilog
123126
if: steps.cache-iverilog.outputs.cache-hit != 'true'
@@ -169,6 +172,8 @@ jobs:
169172
steps:
170173
- name: Checkout Yosys
171174
uses: actions/checkout@v4
175+
with:
176+
persist-credentials: false
172177

173178
- name: Setup environment
174179
uses: ./.github/actions/setup-build-env
@@ -190,7 +195,7 @@ jobs:
190195
- name: Run tests
191196
shell: bash
192197
run: |
193-
make -C docs test -j${{ env.procs }}
198+
make -C docs test -j$procs
194199
195200
test-docs-build:
196201
name: Try build docs
@@ -206,6 +211,7 @@ jobs:
206211
uses: actions/checkout@v4
207212
with:
208213
submodules: true
214+
persist-credentials: false
209215

210216
- name: Runtime environment
211217
run: |
@@ -215,7 +221,7 @@ jobs:
215221
run: |
216222
make config-clang
217223
echo "ENABLE_CCACHE := 1" >> Makefile.conf
218-
make -j${{ env.procs }}
224+
make -j$procs
219225
220226
- name: Install doc prereqs
221227
shell: bash
@@ -225,7 +231,7 @@ jobs:
225231
- name: Build docs
226232
shell: bash
227233
run: |
228-
make docs DOC_TARGET=${{ matrix.docs-target }} -j${{ env.procs }}
234+
make docs DOC_TARGET=${{ matrix.docs-target }} -j$procs
229235
230236
- name: Store docs build artifact
231237
uses: actions/upload-artifact@v4

.github/workflows/test-compile.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -45,6 +45,7 @@ jobs:
4545
uses: actions/checkout@v4
4646
with:
4747
submodules: true
48+
persist-credentials: false
4849

4950
- name: Setup environment
5051
uses: ./.github/actions/setup-build-env

.github/workflows/test-verific.yml

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ jobs:
4040
echo "ENABLE_VERIFIC_YOSYSHQ_EXTENSIONS := 1" >> Makefile.conf
4141
echo "ENABLE_CCACHE := 1" >> Makefile.conf
4242
echo "ENABLE_FUNCTIONAL_TESTS := 1" >> Makefile.conf
43-
make -j${{ env.procs }} ENABLE_LTO=1
43+
make -j$procs ENABLE_LTO=1
4444
4545
- name: Install Yosys
4646
run: |
@@ -51,14 +51,15 @@ jobs:
5151
with:
5252
repository: 'YosysHQ/sby'
5353
path: 'sby'
54+
persist-credentials: false
5455

5556
- name: Build SBY
5657
run: |
5758
make -C sby install DESTDIR=${GITHUB_WORKSPACE}/.local PREFIX=
5859
5960
- name: Run Yosys tests
6061
run: |
61-
make -j${{ env.procs }} test
62+
make -j$procs test
6263
6364
- name: Run Verific specific Yosys tests
6465
run: |

.github/workflows/update-flake-lock.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,8 @@ jobs:
1010
steps:
1111
- name: Checkout repository
1212
uses: actions/checkout@v4
13+
with:
14+
persist-credentials: false
1315
- name: Install Nix
1416
uses: DeterminateSystems/nix-installer-action@main
1517
- name: Update flake.lock

.github/workflows/version.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,7 @@ jobs:
1414
with:
1515
fetch-depth: 0
1616
submodules: true
17+
persist-credentials: false
1718
- name: Take last commit
1819
id: log
1920
run: echo "message=$(git log --no-merges -1 --oneline)" >> $GITHUB_OUTPUT

.github/workflows/wheels.yml

Lines changed: 11 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,10 @@
11
name: Build Wheels for PyPI
2+
3+
# run every Sunday at 10 AM
24
on:
35
workflow_dispatch:
6+
schedule:
7+
- cron: '0 10 * * 0'
48

59
jobs:
610
build_wheels:
@@ -14,16 +18,12 @@ jobs:
1418
runner: "ubuntu-22.04",
1519
archs: "x86_64",
1620
},
17-
## Aarch64 is disabled for now: GitHub is committing to EOY
18-
## for free aarch64 runners for open-source projects and
19-
## emulation times out:
20-
## https://github.com/orgs/community/discussions/19197#discussioncomment-10550689
21-
# {
22-
# name: "Ubuntu 22.04",
23-
# family: "linux",
24-
# runner: "ubuntu-22.04",
25-
# archs: "aarch64",
26-
# },
21+
{
22+
name: "Ubuntu 22.04",
23+
family: "linux",
24+
runner: "ubuntu-22.04-arm",
25+
archs: "aarch64",
26+
},
2727
{
2828
name: "macOS 13",
2929
family: "macos",
@@ -53,6 +53,7 @@ jobs:
5353
with:
5454
fetch-depth: 0
5555
submodules: true
56+
persist-credentials: false
5657
- if: ${{ matrix.os.family == 'linux' }}
5758
name: "[Linux] Set up QEMU"
5859
uses: docker/setup-qemu-action@v3

0 commit comments

Comments
 (0)