mirror of
https://github.com/YosysHQ/yosys
synced 2026-07-04 14:36:10 +00:00
Store caches on main
This commit is contained in:
parent
0af18fa273
commit
459a933005
4 changed files with 32 additions and 17 deletions
15
.github/workflows/extra-builds.yml
vendored
15
.github/workflows/extra-builds.yml
vendored
|
|
@ -3,8 +3,8 @@ name: Test extra build flows
|
||||||
on:
|
on:
|
||||||
pull_request:
|
pull_request:
|
||||||
merge_group:
|
merge_group:
|
||||||
#push:
|
push:
|
||||||
# branches: [ main ]
|
branches: [ main ]
|
||||||
workflow_dispatch:
|
workflow_dispatch:
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
|
|
@ -27,6 +27,8 @@ jobs:
|
||||||
run: |
|
run: |
|
||||||
if [ "${{ github.event_name }}" = "merge_group" ]; then
|
if [ "${{ github.event_name }}" = "merge_group" ]; then
|
||||||
echo "should_skip=false" >> $GITHUB_OUTPUT
|
echo "should_skip=false" >> $GITHUB_OUTPUT
|
||||||
|
elif [ "${{ github.event_name }}" = "push" ]; then
|
||||||
|
should_skip=false
|
||||||
else
|
else
|
||||||
echo "should_skip=${{ steps.skip_check.outputs.should_skip }}" >> $GITHUB_OUTPUT
|
echo "should_skip=${{ steps.skip_check.outputs.should_skip }}" >> $GITHUB_OUTPUT
|
||||||
fi
|
fi
|
||||||
|
|
@ -35,7 +37,7 @@ jobs:
|
||||||
name: Visual Studio build
|
name: Visual Studio build
|
||||||
runs-on: windows-latest
|
runs-on: windows-latest
|
||||||
needs: [pre_job]
|
needs: [pre_job]
|
||||||
if: (github.event_name == 'merge_group' || github.event_name == 'workflow_dispatch') && needs.pre_job.outputs.should_skip != 'true'
|
if: (github.event_name == 'push' || github.event_name == 'merge_group' || github.event_name == 'workflow_dispatch') && needs.pre_job.outputs.should_skip != 'true'
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v7
|
- uses: actions/checkout@v7
|
||||||
with:
|
with:
|
||||||
|
|
@ -51,6 +53,7 @@ jobs:
|
||||||
uses: hendrikmuhs/ccache-action@v1.2.23
|
uses: hendrikmuhs/ccache-action@v1.2.23
|
||||||
with:
|
with:
|
||||||
key: vs-build
|
key: vs-build
|
||||||
|
save: ${{ github.event_name == 'push' && github.ref == 'refs/heads/main' }}
|
||||||
restore-keys: |
|
restore-keys: |
|
||||||
vs-build-
|
vs-build-
|
||||||
|
|
||||||
|
|
@ -80,7 +83,7 @@ jobs:
|
||||||
name: MINGW64 build
|
name: MINGW64 build
|
||||||
runs-on: windows-latest
|
runs-on: windows-latest
|
||||||
needs: [pre_job]
|
needs: [pre_job]
|
||||||
if: (github.event_name == 'merge_group' || github.event_name == 'workflow_dispatch') && needs.pre_job.outputs.should_skip != 'true'
|
if: (github.event_name == 'push' || github.event_name == 'merge_group' || github.event_name == 'workflow_dispatch') && needs.pre_job.outputs.should_skip != 'true'
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v7
|
- uses: actions/checkout@v7
|
||||||
with:
|
with:
|
||||||
|
|
@ -114,6 +117,7 @@ jobs:
|
||||||
uses: hendrikmuhs/ccache-action@v1.2.23
|
uses: hendrikmuhs/ccache-action@v1.2.23
|
||||||
with:
|
with:
|
||||||
key: mingw-build
|
key: mingw-build
|
||||||
|
save: ${{ github.event_name == 'push' && github.ref == 'refs/heads/main' }}
|
||||||
restore-keys: |
|
restore-keys: |
|
||||||
mingw-build-
|
mingw-build-
|
||||||
|
|
||||||
|
|
@ -130,7 +134,7 @@ jobs:
|
||||||
wasi-build:
|
wasi-build:
|
||||||
name: WASI build
|
name: WASI build
|
||||||
needs: pre_job
|
needs: pre_job
|
||||||
if: (github.event_name == 'merge_group' || github.event_name == 'workflow_dispatch') && needs.pre_job.outputs.should_skip != 'true'
|
if: (github.event_name == 'push' || github.event_name == 'merge_group' || github.event_name == 'workflow_dispatch') && needs.pre_job.outputs.should_skip != 'true'
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v7
|
- uses: actions/checkout@v7
|
||||||
|
|
@ -142,6 +146,7 @@ jobs:
|
||||||
uses: hendrikmuhs/ccache-action@v1.2.23
|
uses: hendrikmuhs/ccache-action@v1.2.23
|
||||||
with:
|
with:
|
||||||
key: wasi-build
|
key: wasi-build
|
||||||
|
save: ${{ github.event_name == 'push' && github.ref == 'refs/heads/main' }}
|
||||||
restore-keys: |
|
restore-keys: |
|
||||||
wasi-build-
|
wasi-build-
|
||||||
|
|
||||||
|
|
|
||||||
15
.github/workflows/test-build.yml
vendored
15
.github/workflows/test-build.yml
vendored
|
|
@ -3,8 +3,8 @@ name: Build and run tests
|
||||||
on:
|
on:
|
||||||
pull_request:
|
pull_request:
|
||||||
merge_group:
|
merge_group:
|
||||||
#push:
|
push:
|
||||||
# branches: [ main ]
|
branches: [ main ]
|
||||||
workflow_dispatch:
|
workflow_dispatch:
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
|
|
@ -50,6 +50,8 @@ jobs:
|
||||||
run: |
|
run: |
|
||||||
if [ "${{ github.event_name }}" = "merge_group" ]; then
|
if [ "${{ github.event_name }}" = "merge_group" ]; then
|
||||||
echo "should_skip=false" >> $GITHUB_OUTPUT
|
echo "should_skip=false" >> $GITHUB_OUTPUT
|
||||||
|
elif [ "${{ github.event_name }}" = "push" ]; then
|
||||||
|
should_skip=false
|
||||||
else
|
else
|
||||||
echo "should_skip=${{ steps.skip_check.outputs.should_skip }}" >> $GITHUB_OUTPUT
|
echo "should_skip=${{ steps.skip_check.outputs.should_skip }}" >> $GITHUB_OUTPUT
|
||||||
fi
|
fi
|
||||||
|
|
@ -83,6 +85,7 @@ jobs:
|
||||||
uses: hendrikmuhs/ccache-action@v1.2.23
|
uses: hendrikmuhs/ccache-action@v1.2.23
|
||||||
with:
|
with:
|
||||||
key: test-build-${{ matrix.os }}
|
key: test-build-${{ matrix.os }}
|
||||||
|
save: ${{ github.event_name == 'push' && github.ref == 'refs/heads/main' }}
|
||||||
restore-keys: |
|
restore-keys: |
|
||||||
test-build-${{ matrix.os }}-
|
test-build-${{ matrix.os }}-
|
||||||
|
|
||||||
|
|
@ -115,7 +118,7 @@ jobs:
|
||||||
name: Run tests
|
name: Run tests
|
||||||
runs-on: ${{ matrix.os }}
|
runs-on: ${{ matrix.os }}
|
||||||
needs: [build-yosys, pre_job]
|
needs: [build-yosys, pre_job]
|
||||||
if: needs.pre_job.outputs.should_skip != 'true'
|
if: github.event_name != 'push' && needs.pre_job.outputs.should_skip != 'true'
|
||||||
env:
|
env:
|
||||||
CC: clang
|
CC: clang
|
||||||
strategy:
|
strategy:
|
||||||
|
|
@ -165,7 +168,7 @@ jobs:
|
||||||
name: Run test_cell
|
name: Run test_cell
|
||||||
runs-on: ${{ matrix.os }}
|
runs-on: ${{ matrix.os }}
|
||||||
needs: [build-yosys, pre_job]
|
needs: [build-yosys, pre_job]
|
||||||
if: needs.pre_job.outputs.should_skip != 'true'
|
if: github.event_name != 'push' && needs.pre_job.outputs.should_skip != 'true'
|
||||||
env:
|
env:
|
||||||
CC: clang
|
CC: clang
|
||||||
strategy:
|
strategy:
|
||||||
|
|
@ -204,7 +207,7 @@ jobs:
|
||||||
name: Run docs tests
|
name: Run docs tests
|
||||||
runs-on: ${{ matrix.os }}
|
runs-on: ${{ matrix.os }}
|
||||||
needs: [build-yosys, pre_docs_job]
|
needs: [build-yosys, pre_docs_job]
|
||||||
if: needs.pre_docs_job.outputs.should_skip != 'true'
|
if: github.event_name != 'push' && needs.pre_job.outputs.should_skip != 'true'
|
||||||
strategy:
|
strategy:
|
||||||
matrix:
|
matrix:
|
||||||
os: [ubuntu-latest]
|
os: [ubuntu-latest]
|
||||||
|
|
@ -246,7 +249,7 @@ jobs:
|
||||||
name: Try build docs
|
name: Try build docs
|
||||||
runs-on: [self-hosted, linux, x64, fast]
|
runs-on: [self-hosted, linux, x64, fast]
|
||||||
needs: [pre_docs_job]
|
needs: [pre_docs_job]
|
||||||
if: ${{ needs.pre_docs_job.outputs.should_skip != 'true' && github.repository_owner == 'YosysHQ' }}
|
if: ${{ github.event_name != 'push' && needs.pre_docs_job.outputs.should_skip != 'true' && github.repository_owner == 'YosysHQ' }}
|
||||||
strategy:
|
strategy:
|
||||||
matrix:
|
matrix:
|
||||||
docs-target: [html, latexpdf]
|
docs-target: [html, latexpdf]
|
||||||
|
|
|
||||||
9
.github/workflows/test-compile.yml
vendored
9
.github/workflows/test-compile.yml
vendored
|
|
@ -3,8 +3,8 @@ name: Compiler testing
|
||||||
on:
|
on:
|
||||||
pull_request:
|
pull_request:
|
||||||
merge_group:
|
merge_group:
|
||||||
#push:
|
push:
|
||||||
# branches: [ main ]
|
branches: [ main ]
|
||||||
workflow_dispatch:
|
workflow_dispatch:
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
|
|
@ -27,6 +27,8 @@ jobs:
|
||||||
run: |
|
run: |
|
||||||
if [ "${{ github.event_name }}" = "merge_group" ]; then
|
if [ "${{ github.event_name }}" = "merge_group" ]; then
|
||||||
echo "should_skip=false" >> $GITHUB_OUTPUT
|
echo "should_skip=false" >> $GITHUB_OUTPUT
|
||||||
|
elif [ "${{ github.event_name }}" = "push" ]; then
|
||||||
|
should_skip=false
|
||||||
else
|
else
|
||||||
echo "should_skip=${{ steps.skip_check.outputs.should_skip }}" >> $GITHUB_OUTPUT
|
echo "should_skip=${{ steps.skip_check.outputs.should_skip }}" >> $GITHUB_OUTPUT
|
||||||
fi
|
fi
|
||||||
|
|
@ -34,7 +36,7 @@ jobs:
|
||||||
test-compile:
|
test-compile:
|
||||||
runs-on: ${{ matrix.os }}
|
runs-on: ${{ matrix.os }}
|
||||||
needs: pre_job
|
needs: pre_job
|
||||||
if: (github.event_name == 'merge_group' || github.event_name == 'workflow_dispatch') && needs.pre_job.outputs.should_skip != 'true'
|
if: (github.event_name == 'push' || github.event_name == 'merge_group' || github.event_name == 'workflow_dispatch') && needs.pre_job.outputs.should_skip != 'true'
|
||||||
env:
|
env:
|
||||||
CXXFLAGS: ${{ startsWith(matrix.compiler, 'gcc') && '-Wp,-D_GLIBCXX_ASSERTIONS' || ''}}
|
CXXFLAGS: ${{ startsWith(matrix.compiler, 'gcc') && '-Wp,-D_GLIBCXX_ASSERTIONS' || ''}}
|
||||||
strategy:
|
strategy:
|
||||||
|
|
@ -70,6 +72,7 @@ jobs:
|
||||||
uses: hendrikmuhs/ccache-action@v1.2.23
|
uses: hendrikmuhs/ccache-action@v1.2.23
|
||||||
with:
|
with:
|
||||||
key: test-compile-${{ matrix.os }}-${{ matrix.compiler }}
|
key: test-compile-${{ matrix.os }}-${{ matrix.compiler }}
|
||||||
|
save: ${{ github.event_name == 'push' && github.ref == 'refs/heads/main' }}
|
||||||
restore-keys: |
|
restore-keys: |
|
||||||
test-compile-${{ matrix.os }}-${{ matrix.compiler }}-
|
test-compile-${{ matrix.os }}-${{ matrix.compiler }}-
|
||||||
|
|
||||||
|
|
|
||||||
10
.github/workflows/test-sanitizers.yml
vendored
10
.github/workflows/test-sanitizers.yml
vendored
|
|
@ -3,8 +3,8 @@ name: Check clang sanitizers
|
||||||
on:
|
on:
|
||||||
pull_request:
|
pull_request:
|
||||||
merge_group:
|
merge_group:
|
||||||
#push:
|
push:
|
||||||
# branches: [ main ]
|
branches: [ main ]
|
||||||
workflow_dispatch:
|
workflow_dispatch:
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
|
|
@ -27,6 +27,8 @@ jobs:
|
||||||
run: |
|
run: |
|
||||||
if [ "${{ github.event_name }}" = "merge_group" ]; then
|
if [ "${{ github.event_name }}" = "merge_group" ]; then
|
||||||
echo "should_skip=false" >> $GITHUB_OUTPUT
|
echo "should_skip=false" >> $GITHUB_OUTPUT
|
||||||
|
elif [ "${{ github.event_name }}" = "push" ]; then
|
||||||
|
should_skip=false
|
||||||
else
|
else
|
||||||
echo "should_skip=${{ steps.skip_check.outputs.should_skip }}" >> $GITHUB_OUTPUT
|
echo "should_skip=${{ steps.skip_check.outputs.should_skip }}" >> $GITHUB_OUTPUT
|
||||||
fi
|
fi
|
||||||
|
|
@ -35,7 +37,7 @@ jobs:
|
||||||
name: Build and run tests
|
name: Build and run tests
|
||||||
runs-on: ${{ matrix.os }}
|
runs-on: ${{ matrix.os }}
|
||||||
needs: pre_job
|
needs: pre_job
|
||||||
if: (github.event_name == 'merge_group' || github.event_name == 'workflow_dispatch') && needs.pre_job.outputs.should_skip != 'true'
|
if: (github.event_name == 'push' || github.event_name == 'merge_group' || github.event_name == 'workflow_dispatch') && needs.pre_job.outputs.should_skip != 'true'
|
||||||
env:
|
env:
|
||||||
CC: clang
|
CC: clang
|
||||||
ASAN_OPTIONS: halt_on_error=1 detect_container_overflow=0
|
ASAN_OPTIONS: halt_on_error=1 detect_container_overflow=0
|
||||||
|
|
@ -64,6 +66,7 @@ jobs:
|
||||||
uses: hendrikmuhs/ccache-action@v1.2.23
|
uses: hendrikmuhs/ccache-action@v1.2.23
|
||||||
with:
|
with:
|
||||||
key: test-san-${{ matrix.os }}
|
key: test-san-${{ matrix.os }}
|
||||||
|
save: ${{ github.event_name == 'push' && github.ref == 'refs/heads/main' }}
|
||||||
restore-keys: |
|
restore-keys: |
|
||||||
test-san-${{ matrix.os }}-
|
test-san-${{ matrix.os }}-
|
||||||
|
|
||||||
|
|
@ -82,6 +85,7 @@ jobs:
|
||||||
./build/yosys-config || true
|
./build/yosys-config || true
|
||||||
|
|
||||||
- name: Run tests
|
- name: Run tests
|
||||||
|
if: github.event_name != 'push'
|
||||||
shell: bash
|
shell: bash
|
||||||
run: |
|
run: |
|
||||||
make -C tests -j$procs vanilla-test
|
make -C tests -j$procs vanilla-test
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue