-
Notifications
You must be signed in to change notification settings - Fork 43
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #6 from riscv/migration-fix
Migration fix with improved CLI and docs.
- Loading branch information
Showing
403 changed files
with
1,033 additions
and
479,823 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,96 @@ | ||
# This is a basic workflow to help you get started with Actions | ||
|
||
name: CI | ||
|
||
# Controls when the action will run. | ||
on: | ||
# Triggers the workflow on push or pull request events but only for the master branch | ||
push: | ||
branches: [ master ] | ||
|
||
# Allows you to run this workflow manually from the Actions tab | ||
workflow_dispatch: | ||
|
||
# A workflow run is made up of one or more jobs that can run sequentially or in parallel | ||
jobs: | ||
# This workflow contains a single job called "build" | ||
build: | ||
# The type of runner that the job will run on | ||
runs-on: ubuntu-latest | ||
|
||
# Steps represent a sequence of tasks that will be executed as part of the job | ||
steps: | ||
# Checks-out your repository under $GITHUB_WORKSPACE, so your job can access it | ||
- uses: actions/checkout@v2 | ||
|
||
- name: Get version | ||
id: get_version | ||
run: | | ||
echo "::set-output name=version::$(grep -P -o '(?<=## \[).*(?=\])' -m1 CHANGELOG.md)" | ||
- name: Set up Python | ||
uses: actions/setup-python@v2 | ||
with: | ||
python-version: '3.6' | ||
|
||
- name: Install dependencies | ||
run: | | ||
pip install -r riscof/requirements.txt | ||
python -m pip install --upgrade pip | ||
pip install setuptools wheel twine | ||
- name: Publish package | ||
if: github.ref == 'refs/heads/master' | ||
env: | ||
TWINE_USERNAME: ${{ secrets.PYPIUSERNAME }} | ||
TWINE_PASSWORD: ${{ secrets.PYPIPASSWORD }} | ||
run: | | ||
python setup.py sdist bdist_wheel | ||
twine upload dist/* | ||
- name: Tag | ||
id: create_tag | ||
if: github.ref == 'refs/heads/master' | ||
uses: mathieudutour/github-tag-action@v5.5 | ||
with: | ||
github_token: ${{ secrets.GITHUB_TOKEN }} # This token is provided by Actions, you do not need to create your own token | ||
custom_tag: ${{ steps.get_version.outputs.version }} | ||
create_annotated_tag: True | ||
tag_prefix: '' | ||
|
||
- name: Create Release | ||
id: create_release | ||
if: github.ref == 'refs/heads/master' | ||
uses: actions/create-release@v1 | ||
env: | ||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} # This token is provided by Actions, you do not need to create your own token | ||
with: | ||
release_branch: refs/heads/master | ||
release_name: ${{ steps.get_version.outputs.version }} | ||
tag_name: ${{ steps.get_version.outputs.version }} | ||
body: ${{ steps.extract-release-notes.outputs.release_notes }} | ||
draft: false | ||
prerelease: false | ||
|
||
# - name: Script | ||
# uses: ammaraskar/sphinx-action@master | ||
# with: | ||
# docs-folder: "docs/" | ||
# pre-build-command: " apt-get update -y && apt-get install -y latexmk texlive-latex-recommended texlive-latex-extra texlive-fonts-recommended" | ||
# build-command: " make latexpdf " | ||
|
||
|
||
# - name: Upload Release Asset | ||
# id: upload-release-asset | ||
# if: github.ref == 'refs/heads/master' | ||
# uses: actions/upload-release-asset@v1 | ||
# env: | ||
# GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | ||
# with: | ||
# upload_url: ${{ steps.create_release.outputs.upload_url }} # This pulls from the CREATE RELEASE step above, referencing it's ID to get its outputs object, which include a `upload_url`. See this blog post for more info: https://jasonet.co/posts/new-features-of-github-actions/#passing-data-to-future-steps | ||
# asset_path: ./docs/build/latex/riscv_config.pdf | ||
# asset_name: riscv_config.pdf | ||
# asset_content_type: application/pdf | ||
|
||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,32 @@ | ||
# This is a basic workflow to help you get started with Actions | ||
|
||
name: test | ||
|
||
# Controls when the action will run. | ||
on: | ||
# Triggers the workflow on push or pull request events but only for the master branch | ||
pull_request: | ||
branches: [ master ] | ||
|
||
# Allows you to run this workflow manually from the Actions tab | ||
workflow_dispatch: | ||
|
||
# A workflow run is made up of one or more jobs that can run sequentially or in parallel | ||
jobs: | ||
check-version: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v2 | ||
|
||
- name: version check | ||
run: | | ||
export CHNGVER=$(grep -P -o '(?<=## \[).*(?=\])' -m1 CHANGELOG.md); | ||
echo "CHANGELOG VERSION: $CHNGVER" | ||
export INITVER=$(grep -P "__version__ = '.*?'" riscof/__init__.py | awk '{print $3}'|sed "s/'//g"); | ||
echo "INIT VERSION: $INITVER" | ||
if [ "$CHNGVER" = "$INITVER" ]; then | ||
echo "Versions are equal in Changelog and init.py." | ||
else | ||
echo "Versions are not equal in Changelog and init.py." | ||
exit 1 | ||
fi |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -6,6 +6,8 @@ common/__pycache__/ | |
|
||
framework/__pycache__/ | ||
|
||
riscv-arch-test/ | ||
|
||
dbgen/__pycache__/ | ||
|
||
*work/ | ||
|
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
.. _prebuilt_plugins: | ||
|
||
List of Reference RISCOF Plugins | ||
================================ | ||
|
||
This section provides a list of pre-built riscof-plugins which users can refer | ||
to, to build plugins for their own DUT | ||
|
||
- Spike: https://github.com/riscv/riscv-isa-sim/riscof-plugins/README.md | ||
- SAIL_cSim: https://github.com/rems-project/sail-riscv/riscof-plugins/README.md | ||
- InCore Plugins: https://gitlab.com/incoresemi/riscof-plugins (This is a collection of riscof based plugins for various targets hosted purely for reference.) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.