Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merging main to llvm12 #76

Merged
merged 36 commits into from
Oct 11, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
36 commits
Select commit Hold shift + click to select a range
e65a4c7
Add wheel building workflow and packaging improvements
necessary129 Jun 24, 2023
0951d57
Also build musl wheels during workflow
necessary129 Jun 24, 2023
e3287ef
Add upload to pypi workflow
necessary129 Jun 24, 2023
3f59245
Cleanup the Python packaging code
necessary129 Jun 29, 2023
b374381
Make upload-pypi.yml deployment ready
necessary129 Jun 30, 2023
4739ca3
WIP: Python tests
necessary129 Jul 10, 2023
9fd5a21
Copy vocabulary to wheel
necessary129 Jul 10, 2023
e02a8b9
Remove verbose stdout printing from cpp when using the Python bindings
necessary129 Jul 10, 2023
7671950
Add Python tests
necessary129 Jul 10, 2023
c218fa7
Make Python bindings output consistent with ir2vec binary output
necessary129 Jul 13, 2023
201545b
Add tests for function level embeddings
necessary129 Jul 13, 2023
3f657e3
Reuse getDemangledName in core.cpp
necessary129 Jul 17, 2023
a372d59
Regenerate the oracle for Python testing
necessary129 Jul 17, 2023
104f2a4
Don't build musllinux wheel
necessary129 Jul 17, 2023
5efec7b
Be more verbose in regen-oracle.sh
necessary129 Jul 17, 2023
38c3e51
Add dockerfiles
necessary129 Jul 17, 2023
d36ac2c
Merge pull request #70 from necessary129/python-packaging-3
svkeerthy Sep 24, 2023
99dccb0
Renaming authors and removing email from setup.py
Soumyaworks Sep 24, 2023
2a6c8bd
Link related changes pointing to iith-compilers manylinux repo docker…
Soumyaworks Sep 24, 2023
682b20c
Minor updates to link related changes
Soumyaworks Sep 24, 2023
2f44670
Adding License text
svkeerthy Sep 25, 2023
6714c17
Minor changes to fix attributes of the Python package
svkeerthy Sep 25, 2023
9ff7e3b
Fixing parent path in __init__
svkeerthy Sep 25, 2023
17f2fcc
Merge branch 'IITH-Compilers:main' into main
Soumyaworks Sep 25, 2023
21a2672
Pre-commit changes in __init__.py
Soumyaworks Sep 25, 2023
e62221c
Merge pull request #73 from Soumyaworks/main
svkeerthy Sep 25, 2023
3c7b679
Incremental changes in README.md
Soumyaworks Sep 26, 2023
66ae02f
Changes in README.md regarding installation options
Soumyaworks Sep 27, 2023
34985d6
Adding __version__ attribute in python package
svkeerthy Oct 7, 2023
a9714c0
Merge branch 'main' into main
svkeerthy Oct 7, 2023
8eda6f5
Changes related to IR2Vec wheels and moving them to main readme
Soumyaworks Oct 8, 2023
a6dbabe
Merge branch 'main' of github.com:Soumyaworks/IR2Vec into main
Soumyaworks Oct 8, 2023
259e23f
Removed IR2Vec_Wheels directory
Soumyaworks Oct 8, 2023
f171134
Update README.md
svkeerthy Oct 8, 2023
85d995f
pre-commit related changes
Soumyaworks Oct 8, 2023
58c2f20
Merge pull request #74 from Soumyaworks/main
svkeerthy Oct 8, 2023
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
22 changes: 22 additions & 0 deletions .devcontainer/devcontainer.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
// For format details, see https://aka.ms/devcontainer.json. For config options, see the
// README at: https://github.com/devcontainers/templates/tree/main/src/ubuntu
{
"name": "LLVM Manylinux",
// Or use a Dockerfile or Docker Compose file. More info: https://containers.dev/guide/dockerfile
"image": "ghcr.io/iith-compilers/manylinux2014-llvm/manylinux2014-llvm:x86-llvm12"

// Features to add to the dev container. More info: https://containers.dev/features.
// "features": {},

// Use 'forwardPorts' to make a list of ports inside the container available locally.
// "forwardPorts": [],

// Use 'postCreateCommand' to run commands after the container is created.
// "postCreateCommand": "uname -a",

// Configure tool-specific properties.
// "customizations": {},

// Uncomment to connect as root instead. More info: https://aka.ms/dev-containers-non-root.
// "remoteUser": "root"
}
59 changes: 59 additions & 0 deletions .github/workflows/upload-pypi.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,59 @@
name: Upload to PyPI

on:
release:
types:
- published
workflow_dispatch:
inputs:
pypi_repo:
description: 'Repo to upload to (testpypi or pypi)'
default: 'testpypi'
required: true
type: choice
options:
- testpypi
- pypi

jobs:
build_wheels:
uses: ./.github/workflows/wheel.yml


build_sdist:
runs-on: ubuntu-latest
container: ghcr.io/iith-compilers/manylinux2014-llvm/manylinux2014-llvm:x86-llvm12
steps:
- uses: actions/checkout@v3

- name: Build IR2Vec
run: bash Manylinux2014_Compliant_Source/pkg/build.sh

- name: Build sdist
run: cd Manylinux2014_Compliant_Source/pkg && pipx run build --sdist

- uses: actions/upload-artifact@v3
with:
path: Manylinux2014_Compliant_Source/pkg/dist/*.tar.gz


upload_pypi:
permissions:
id-token: write
needs: [build_wheels, build_sdist]
runs-on: ubuntu-latest
steps:
- uses: actions/download-artifact@v3
with:
name: artifact
path: dist

- name: Publish package to TestPyPI
uses: pypa/[email protected]
with:
repository-url: https://test.pypi.org/legacy/
if: ${{ github.event.inputs.pypi_repo != 'pypi' }}

- name: Publish package to PyPI
uses: pypa/[email protected]
if: ${{ github.event.inputs.pypi_repo == 'pypi' }}
Loading