Skip to content

Commit

Permalink
Add automatic pypi release action (#50)
Browse files Browse the repository at this point in the history
- Adds github action to automatically publish new releases to pypi
- Removed roadmap in readme
- Changed install instructions to pip install amarna
  • Loading branch information
coolhill committed Jul 15, 2022
1 parent d9623aa commit a626d70
Show file tree
Hide file tree
Showing 2 changed files with 28 additions and 16 deletions.
26 changes: 26 additions & 0 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
name: Publish Python Package

on:
release:
types: [published]

jobs:
deploy:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Set up Python 3.7
uses: actions/setup-python@v3
with:
python-version: "3.7"
- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install setuptools wheel twine
- name: Build
run: |
python setup.py sdist bdist_wheel
- name: Publish distribution to PyPI
uses: pypa/gh-action-pypi-publish@master
with:
password: ${{ secrets.PYPI_API_TOKEN }}
18 changes: 2 additions & 16 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -94,8 +94,7 @@ The [SARIF](https://sarifweb.azurewebsites.net/) file format is a standard forma
## Installation
```bash
git clone git@github.com:trailofbits/amarna.git && cd amarna
pip install -e .
pip install amarna
```


Expand Down Expand Up @@ -146,17 +145,4 @@ as the first line of `file.cairo` and running amarna with
```bash
amarna directory/ --disable-inline -s
```
will not report any arithmetic rule to the `file.cairo` file.




----

# Roadmap: Cairo patterns to implement in the future
- [ ] find uninitialized variables
- [ ] using ap and fp registers manually
- [ ] call and jmp and revoked references
- [ ] undefined behavior when using [ap] directly
- [ ] callback before tempvars -- the callback might overwrite local variable memory.

will not report any arithmetic rule to the `file.cairo` file.

0 comments on commit a626d70

Please sign in to comment.