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

add option to install python version #4

Open
wants to merge 4 commits into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
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
7 changes: 4 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,11 +3,11 @@
This action is a [composite action](https://docs.github.com/en/actions/creating-actions/creating-a-composite-action)
that will install on Ubuntu 22.04:
- Java (default 11)
- Python 3.10
- Python (default 3.10)
- Ice 3.6.5
- Ice Python binding

The Java version can be passed as a parameter
The Java and Python versions can be passed as parameters.

To use the action in a workflow:

Expand All @@ -24,7 +24,7 @@ jobs:
uses: ome/action-ice@v3
```

If you wish to change the Java version, for example use Java 1.8
If you wish to change the Java version and Python version, for example use Java 1.8 and Python 3.12

```
on: [push]
Expand All @@ -39,4 +39,5 @@ jobs:
uses: ome/action-ice@v3
with:
java-version: 1.8
python-version: 3.12
```
34 changes: 30 additions & 4 deletions action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,10 @@ inputs:
description: 'The Java distribution to install'
required: false
default: 'temurin'
python-version:
description: 'Version of Python to use'
required: false
default: 10


runs:
Expand All @@ -28,12 +32,34 @@ runs:
rm Ice-3.6.5-ubuntu2204-x86_64.tar.gz
echo "/opt/ice-3.6.5/bin" >> $GITHUB_PATH
shell: bash
- name: Install Python 3.10
- name: Install Python ${{ inputs.python-version }}
uses: actions/setup-python@v4
with:
python-version: '3.10'
python-version: ${{ inputs.python-version }}
- name: Install Ice Python binding
if: ${{ inputs.python-version == '3.8' }}
shell: bash
run: |
pip install https://github.com/ome/zeroc-ice-py-github-ci/releases/download/0.2.0/zeroc_ice-3.6.5-cp38-cp38-linux_x86_64.whl
- name: Install Ice Python binding
if: ${{ inputs.python-version == '3.9' }}
shell: bash
run: |
pip install https://github.com/ome/zeroc-ice-py-github-ci/releases/download/0.2.0/zeroc_ice-3.6.5-cp39-cp39-linux_x86_64.whl
- name: Install Ice Python binding
if: ${{ inputs.python-version == '3.10' }}
shell: bash
run: |
pip install https://github.com/ome/zeroc-ice-py-github-ci/releases/download/0.2.0/zeroc_ice-3.6.5-cp310-cp310-linux_x86_64.whl
- name: Install Ice Python binding
if: ${{ inputs.python-version == '3.11' }}
shell: bash
run: |
pip install https://github.com/glencoesoftware/zeroc-ice-py-linux-x86_64/releases/download/20240202/zeroc_ice-3.6.5-cp311-cp311-manylinux_2_28_x86_64.whl
- name: Install Ice Python binding
if: ${{ inputs.python-version == '3.12' }}
shell: bash
run: |
pip install https://github.com/glencoesoftware/zeroc-ice-py-ubuntu2204-x86_64/releases/download/20221004/zeroc_ice-3.6.5-cp310-cp310-linux_x86_64.whl

pip install https://github.com/glencoesoftware/zeroc-ice-py-linux-x86_64/releases/download/20240202/zeroc_ice-3.6.5-cp312-cp312-manylinux_2_28_x86_64.whl