-
Notifications
You must be signed in to change notification settings - Fork 10
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Signed-off-by: Bertrand Rix <[email protected]> Update on java side. Signed-off-by: Bertrand Rix <[email protected]> Zip binaries and upload artifact. Signed-off-by: Bertrand Rix <[email protected]> Adjust. Signed-off-by: Bertrand Rix <[email protected]> Adjust. Signed-off-by: Bertrand Rix <[email protected]> Try creating dist. Signed-off-by: Bertrand Rix <[email protected]> Replace if exists. Signed-off-by: Bertrand Rix <[email protected]> Release workflow. Signed-off-by: Bertrand Rix <[email protected]> Package headers. Signed-off-by: Bertrand Rix <[email protected]> Clean zip. Signed-off-by: Bertrand Rix <[email protected]> Try adding cxx11 compile definition. Signed-off-by: Bertrand Rix <[email protected]> Try cpp 17. Signed-off-by: Bertrand Rix <[email protected]> Try manylinux 2 28. Signed-off-by: Bertrand Rix <[email protected]> Back to manylinux 2014. Signed-off-by: Bertrand Rix <[email protected]> Try mingw. Signed-off-by: Bertrand Rix <[email protected]> print gcc. Signed-off-by: Bertrand Rix <[email protected]> print gcc. Signed-off-by: Bertrand Rix <[email protected]> Print cmake args Signed-off-by: Bertrand Rix <[email protected]> Revert Signed-off-by: Bertrand Rix <[email protected]> Add flag to build only powsybl cpp. Signed-off-by: Bertrand Rix <[email protected]> Update CI release. Signed-off-by: Bertrand Rix <[email protected]> Update CI Release. Signed-off-by: Bertrand Rix <[email protected]> Put in binaries only what is needed. Signed-off-by: Bertrand Rix <[email protected]> Clean. Signed-off-by: Bertrand Rix <[email protected]> Try update of release CI. Signed-off-by: Bertrand Rix <[email protected]>
- Loading branch information
Showing
4 changed files
with
222 additions
and
40 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,135 @@ | ||
name: Release | ||
|
||
on: | ||
release: | ||
types: | ||
- created | ||
|
||
jobs: | ||
manylinux_build: | ||
name: Build linux ${{ matrix.python.name }} wheel | ||
runs-on: ubuntu-latest | ||
container: quay.io/pypa/manylinux2014_x86_64:2024-07-01-8dac23b | ||
env: | ||
ACTIONS_ALLOW_USE_UNSECURE_NODE_VERSION: true | ||
strategy: | ||
matrix: | ||
python: | ||
- { | ||
name: cp38, | ||
abi: cp38, | ||
version: '3.8', | ||
} | ||
|
||
steps: | ||
- name: Install Maven | ||
run: | | ||
curl --fail --silent --show-error https://dlcdn.apache.org/maven/maven-3/3.9.6/binaries/apache-maven-3.9.6-bin.tar.gz -o /tmp/apache-maven-3.9.6-bin.tar.gz | ||
tar xf /tmp/apache-maven-*.tar.gz -C /opt | ||
echo /opt/apache-maven-3.9.6/bin >> $GITHUB_PATH | ||
- name: Setup GraalVM | ||
uses: graalvm/[email protected] # !!! this is last version compatible with manylinux 2014 | ||
with: | ||
java-version: '17' | ||
distribution: 'graalvm' | ||
github-token: ${{ secrets.GITHUB_TOKEN }} | ||
|
||
- name: Checkout sources | ||
uses: actions/checkout@v3 | ||
with: | ||
submodules: true | ||
|
||
- name: Setup path | ||
run: echo "/opt/python/${{ matrix.python.name }}-${{ matrix.python.abi }}/bin/" >> $GITHUB_PATH | ||
|
||
- name: Install dependencies | ||
run: pip3 install -r requirements.txt | ||
|
||
- name: Build wheel | ||
run: | | ||
python3 setup.py bdist_wheel | ||
auditwheel repair dist/*.whl | ||
- name: Install wheel | ||
run: pip3 install wheelhouse/*.whl --user | ||
|
||
- name: Run basic pypowsybl import | ||
working-directory: ./tests | ||
run: python3 basic_import_test.py | ||
|
||
- name: Upload binaries | ||
uses: actions/[email protected] | ||
env: | ||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | ||
with: | ||
upload_url: ${{ github.event.release.upload_url }} | ||
asset_path: ./dist/binaries.zip | ||
asset_name: binaries-${{ github.event.release.tag_name }}-linux.zip | ||
asset_content_type: application/zip | ||
|
||
macos_windows_build: | ||
name: Build ${{ matrix.config.name }} ${{ matrix.python.name }} wheel | ||
runs-on: ${{ matrix.config.os }} | ||
strategy: | ||
matrix: | ||
config: | ||
- { | ||
name: darwin, | ||
os: macos-12, | ||
} | ||
- { | ||
name: windows, | ||
os: windows-2022, | ||
} | ||
python: | ||
- { | ||
name: cp38, | ||
version: '3.8', | ||
} | ||
|
||
steps: | ||
- name: Setup GraalVM | ||
uses: graalvm/setup-graalvm@v1 | ||
with: | ||
java-version: '17' | ||
distribution: 'graalvm' | ||
github-token: ${{ secrets.GITHUB_TOKEN }} | ||
|
||
- name: Checkout sources | ||
uses: actions/checkout@v3 | ||
with: | ||
submodules: true | ||
|
||
- name: Setup Python | ||
uses: actions/setup-python@v4 | ||
with: | ||
python-version: ${{ matrix.python.version }} | ||
|
||
- name: Install Python dependencies | ||
run: | | ||
python -m pip install --upgrade pip | ||
python -m pip install -r requirements.txt | ||
- name: Build wheel | ||
env: | ||
MACOSX_DEPLOYMENT_TARGET: "10.16" # to ensure pip finds wheel when Big Sur is configured to return 10.16 as version instead of 11.0 | ||
run: python setup.py bdist_wheel | ||
|
||
- name: Install wheel | ||
shell: bash | ||
run: python -m pip install dist/*.whl --user | ||
|
||
- name: Run basic pypowsybl import | ||
working-directory: ./tests | ||
run: python3 basic_import_test.py | ||
|
||
- name: Upload binaries | ||
uses: actions/[email protected] | ||
env: | ||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | ||
with: | ||
upload_url: ${{ github.event.release.upload_url }} | ||
asset_path: ./dist/binaries.zip | ||
asset_name: binaries-${{ github.event.release.tag_name }}-${{ matrix.config.name }}.zip | ||
asset_content_type: application/zip |
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