aboutsummaryrefslogtreecommitdiffstats
path: root/.github
diff options
context:
space:
mode:
Diffstat (limited to '.github')
-rw-r--r--.github/ISSUE_TEMPLATE/bug_report.yml75
-rw-r--r--.github/ISSUE_TEMPLATE/config.yml11
-rw-r--r--.github/ISSUE_TEMPLATE/feature_request.yml26
-rw-r--r--.github/issue_template.md24
-rw-r--r--.github/workflows/codeql.yml29
-rw-r--r--.github/workflows/emcc.yml10
-rw-r--r--.github/workflows/test-linux.yml18
-rw-r--r--.github/workflows/test-macos.yml58
-rw-r--r--.github/workflows/version.yml6
-rw-r--r--.github/workflows/vs.yml12
10 files changed, 153 insertions, 116 deletions
diff --git a/.github/ISSUE_TEMPLATE/bug_report.yml b/.github/ISSUE_TEMPLATE/bug_report.yml
new file mode 100644
index 000000000..27cfd09b7
--- /dev/null
+++ b/.github/ISSUE_TEMPLATE/bug_report.yml
@@ -0,0 +1,75 @@
+name: Bug Report
+description: Report an issue or regression with Yosys
+labels: ["pending-verification"]
+body:
+ - type: markdown
+ attributes:
+ value: >
+
+ If you have a general question, please ask it in the [Discussions](https://github.com/YosysHQ/yosys/discussions) area
+ or join our [IRC Channel](https://web.libera.chat/#yosys) or [Community Slack](https://join.slack.com/t/yosyshq/shared_invite/zt-1aopkns2q-EiQ97BeQDt_pwvE41sGSuA).
+
+
+ If you have a feature request, please fill out the appropriate issue form, this form is for bugs and/or regressions.
+
+
+ Please contact [YosysHQ GmbH](https://www.yosyshq.com/) if you need
+ commercial support for Yosys.
+
+ - type: input
+ id: yosys_version
+ attributes:
+ label: Version
+ description: "The version of yosys this bug was encountered on."
+ placeholder: "The output of `yosys --version`"
+ validations:
+ required: true
+
+ - type: dropdown
+ id: os
+ attributes:
+ label: On which OS did this happen?
+ options:
+ - Linux
+ - macOS
+ - Windows
+ - BSD
+ multiple: true
+ validations:
+ required: true
+
+ - type: markdown
+ attributes:
+ value: >
+ When providing steps to reproduce the issue, please ensure that the issue
+ is reproducible in the current git master of Yosys. Also ensure to
+ provide all necessary source files needed.
+
+
+ Please see [https://stackoverflow.com/help/mcve](https://stackoverflow.com/help/mcve)
+ for information on how to create a Minimal, Complete, and Verifiable Example
+ (MCVE).
+
+ - type: textarea
+ id: reproduction_steps
+ attributes:
+ label: Reproduction Steps
+ description: "Please provide clear and concise steps to reproduce the issue."
+ validations:
+ required: true
+
+ - type: textarea
+ id: expected_behavior
+ attributes:
+ label: Expected Behavior
+ description: "Please describe the behavior you would have expected from the tool."
+ validations:
+ required: true
+
+ - type: textarea
+ id: actual_behavior
+ attributes:
+ label: Actual Behavior
+ description: "Please describe how the behavior you see differs from the expected behavior."
+ validations:
+ required: true
diff --git a/.github/ISSUE_TEMPLATE/config.yml b/.github/ISSUE_TEMPLATE/config.yml
new file mode 100644
index 000000000..bef410a3c
--- /dev/null
+++ b/.github/ISSUE_TEMPLATE/config.yml
@@ -0,0 +1,11 @@
+contact_links:
+ - name: Discussions
+ url: https://github.com/YosysHQ/yosys/discussions
+ about: "Have a question? Ask it on our discussions page!"
+ - name: Community Slack
+ url: https://join.slack.com/t/yosyshq/shared_invite/zt-1aopkns2q-EiQ97BeQDt_pwvE41sGSuA
+ about: "Yosys Community Slack"
+ - name: IRC Channel
+ url: https://web.libera.chat/#yosys
+ about: "#yosys on irc.libera.chat"
+
diff --git a/.github/ISSUE_TEMPLATE/feature_request.yml b/.github/ISSUE_TEMPLATE/feature_request.yml
new file mode 100644
index 000000000..c521b5296
--- /dev/null
+++ b/.github/ISSUE_TEMPLATE/feature_request.yml
@@ -0,0 +1,26 @@
+name: Feature Request
+description: "Submit a feature request for Yosys"
+labels: ["feature-request"]
+body:
+ - type: markdown
+ attributes:
+ value: >
+
+ If you have a general question, please ask it in the [Discussions](https://github.com/YosysHQ/yosys/discussions) area
+ or join our [IRC Channel](https://web.libera.chat/#yosys) or [Community Slack](https://join.slack.com/t/yosyshq/shared_invite/zt-1aopkns2q-EiQ97BeQDt_pwvE41sGSuA).
+
+
+ If you have a bug report, please fill out the appropriate issue form, this form is for feature requests.
+
+
+ Please contact [YosysHQ GmbH](https://www.yosyshq.com/) if you need
+ commercial support or work done for Yosys.
+
+ - type: textarea
+ id: feature_description
+ attributes:
+ label: Feature Description
+ description: "A clear and detailed description of the feature."
+ validations:
+ required: true
+
diff --git a/.github/issue_template.md b/.github/issue_template.md
deleted file mode 100644
index c72daae3e..000000000
--- a/.github/issue_template.md
+++ /dev/null
@@ -1,24 +0,0 @@
-## Steps to reproduce the issue
-
-*Provide instructions for reproducing the issue. Make sure to include
-all necessary source files. (You can simply drag&drop a .zip file into
-the issue editor.)*
-
-Also, make sure that the issue is actually reproducable in current git
-master of Yosys.
-
-See https://stackoverflow.com/help/mcve for some information on how to
-create a Minimal, Complete, and Verifiable example (MCVE).
-
-Please do not waste our time with issues that lack sufficient information
-to reproduce the issue easily. We will simply close those issues.
-
-Contact https://www.yosyshq.com/ if you need commercial support for Yosys.
-
-## Expected behavior
-
-*Please describe the behavior you would have expected from the tool.*
-
-## Actual behavior
-
-*Please describe how the behavior you see differs from the expected behavior.*
diff --git a/.github/workflows/codeql.yml b/.github/workflows/codeql.yml
new file mode 100644
index 000000000..2a046703b
--- /dev/null
+++ b/.github/workflows/codeql.yml
@@ -0,0 +1,29 @@
+name: "CodeQL"
+
+on:
+ workflow_dispatch:
+ schedule:
+ - cron: '0 3 * * *'
+
+jobs:
+ analyze:
+ name: Analyze
+ runs-on: ubuntu-latest
+ steps:
+ - name: Install deps
+ run: sudo apt-get install bison flex libreadline-dev tcl-dev libffi-dev
+
+ - name: Checkout repository
+ uses: actions/checkout@v3
+
+ - name: Initialize CodeQL
+ uses: github/codeql-action/init@v2
+ with:
+ languages: cpp
+ queries: security-extended,security-and-quality
+
+ - name: Build
+ run: make yosys -j6
+
+ - name: Perform CodeQL Analysis
+ uses: github/codeql-action/analyze@v2
diff --git a/.github/workflows/emcc.yml b/.github/workflows/emcc.yml
index f1cc4b3e7..295d9554b 100644
--- a/.github/workflows/emcc.yml
+++ b/.github/workflows/emcc.yml
@@ -7,18 +7,12 @@ jobs:
runs-on: ubuntu-latest
steps:
- uses: mymindstorm/setup-emsdk@v11
- - uses: actions/checkout@v2
- - name: Cache sources
- id: cache-sources
- uses: actions/cache@v2
- with:
- path: .
- key: cache-yosys
+ - uses: actions/checkout@v3
- name: Build
run: |
make config-emcc
make YOSYS_VER=latest
- - uses: actions/upload-artifact@v2
+ - uses: actions/upload-artifact@v3
with:
name: yosysjs
path: yosysjs-latest.zip
diff --git a/.github/workflows/test-linux.yml b/.github/workflows/test-linux.yml
index e27ea37d2..eee556794 100644
--- a/.github/workflows/test-linux.yml
+++ b/.github/workflows/test-linux.yml
@@ -25,12 +25,6 @@ jobs:
- os: { id: ubuntu-20.04, name: focal }
compiler: 'gcc-10'
cpp_std: 'c++11'
- - os: { id: ubuntu-18.04, name: bionic }
- compiler: 'clang-3.9'
- cpp_std: 'c++11'
- - os: { id: ubuntu-18.04, name: bionic }
- compiler: 'gcc-4.8'
- cpp_std: 'c++11'
fail-fast: false
steps:
- name: Install Dependencies
@@ -84,7 +78,7 @@ jobs:
$CXX --version
- name: Checkout Yosys
- uses: actions/checkout@v2
+ uses: actions/checkout@v3
- name: Get iverilog
shell: bash
@@ -93,7 +87,7 @@ jobs:
- name: Cache iverilog
id: cache-iverilog
- uses: actions/cache@v2
+ uses: actions/cache@v3
with:
path: .local/
key: ${{ matrix.os.id }}-${{ hashFiles('iverilog/.git/refs/heads/master') }}
@@ -109,15 +103,7 @@ jobs:
make -j${{ env.procs }}
make install
- - name: Build yosys (gcc-4.8)
- if: matrix.compiler == 'gcc-4.8'
- shell: bash
- run: |
- make config-${{ matrix.compiler }}
- make -j${{ env.procs }} CCXXSTD=${{ matrix.cpp_std }} CC=$CC CXX=$CC LD=$CC
-
- name: Build yosys
- if: matrix.compiler != 'gcc-4.8'
shell: bash
run: |
make config-${CC%%-*}
diff --git a/.github/workflows/test-macos.yml b/.github/workflows/test-macos.yml
index b14ce8633..048457234 100644
--- a/.github/workflows/test-macos.yml
+++ b/.github/workflows/test-macos.yml
@@ -35,7 +35,7 @@ jobs:
cc --version
- name: Checkout Yosys
- uses: actions/checkout@v2
+ uses: actions/checkout@v3
- name: Get iverilog
shell: bash
@@ -44,7 +44,7 @@ jobs:
- name: Cache iverilog
id: cache-iverilog
- uses: actions/cache@v2
+ uses: actions/cache@v3
with:
path: .local/
key: ${{ matrix.os.id }}-${{ hashFiles('iverilog/.git/refs/heads/master') }}
@@ -71,57 +71,3 @@ jobs:
shell: bash
run: |
make -j${{ env.procs }} test CXXSTD=${{ matrix.cpp_std }} CC=cc CXX=cc LD=cc
-
-
- test-macos-homebrew:
- runs-on: ${{ matrix.os.id }}
- strategy:
- matrix:
- os:
- - { id: macos-10.15, name: Catalina }
- cpp_std:
- - 'c++17'
- compiler:
- - gcc
- fail-fast: false
- steps:
- - name: Install Dependencies
- run: |
- brew install bison flex gawk libffi pkg-config bash
-
- - name: Runtime environment
- shell: bash
- env:
- WORKSPACE: ${{ github.workspace }}
- run: |
- echo "GITHUB_WORKSPACE=`pwd`" >> $GITHUB_ENV
- echo "$GITHUB_WORKSPACE/.local/bin" >> $GITHUB_PATH
- echo "$(brew --prefix bison)/bin" >> $GITHUB_PATH
- echo "$(brew --prefix flex)/bin" >> $GITHUB_PATH
- echo "procs=$(sysctl -n hw.ncpu)" >> $GITHUB_ENV
-
- - name: Setup compiler
- shell: bash
- run: |
- brew install ${{ matrix.compiler }}
- CC=${COMPILER/@/-}
- CXX=${CC/#gcc/g++}
- echo "CC=$CC" >> $GITHUB_ENV
- echo "CXX=$CXX" >> $GITHUB_ENV
- env:
- COMPILER: ${{ matrix.compiler }}
-
- - name: Tool versions
- shell: bash
- run: |
- $CC --version
- $CXX --version
-
- - name: Checkout Yosys
- uses: actions/checkout@v2
-
- - name: Build yosys
- shell: bash
- run: |
- make config-gcc
- make -j${{ env.procs }} CXXSTD=${{ matrix.cpp_std }} CC=$CC CXX=$CC LD=$CC
diff --git a/.github/workflows/version.yml b/.github/workflows/version.yml
index c6f4da30d..c2a1756e9 100644
--- a/.github/workflows/version.yml
+++ b/.github/workflows/version.yml
@@ -10,15 +10,15 @@ jobs:
runs-on: ubuntu-latest
steps:
- name: Checkout
- uses: actions/checkout@v2
+ uses: actions/checkout@v3
with:
fetch-depth: 0
- name: Take last commit
id: log
- run: echo "::set-output name=message::$(git log --no-merges -1 --oneline)"
+ run: echo "message=$(git log --no-merges -1 --oneline)" >> $GITHUB_OUTPUT
- name: Take repository
id: repo
- run: echo "::set-output name=message::$GITHUB_REPOSITORY"
+ run: echo "message=$GITHUB_REPOSITORY" >> $GITHUB_OUTPUT
- name: Bump version
if: "!contains(steps.log.outputs.message, 'Bump version') && contains(steps.repo.outputs.message, 'YosysHQ/yosys')"
run: |
diff --git a/.github/workflows/vs.yml b/.github/workflows/vs.yml
index 79a8401d6..428770e72 100644
--- a/.github/workflows/vs.yml
+++ b/.github/workflows/vs.yml
@@ -6,16 +6,10 @@ jobs:
yosys-vcxsrc:
runs-on: ubuntu-latest
steps:
- - uses: actions/checkout@v2
- - name: Cache sources
- id: cache-sources
- uses: actions/cache@v2
- with:
- path: .
- key: cache-yosys
+ - uses: actions/checkout@v3
- name: Build
run: make vcxsrc YOSYS_VER=latest
- - uses: actions/upload-artifact@v2
+ - uses: actions/upload-artifact@v3
with:
name: vcxsrc
path: yosys-win32-vcxsrc-latest.zip
@@ -24,7 +18,7 @@ jobs:
runs-on: windows-2019
needs: yosys-vcxsrc
steps:
- - uses: actions/download-artifact@v2
+ - uses: actions/download-artifact@v3
with:
name: vcxsrc
path: .