Skip to content

Commit

Permalink
update actions
Browse files Browse the repository at this point in the history
  • Loading branch information
sgatto committed Jul 17, 2024
1 parent 6141a3a commit f0bb172
Show file tree
Hide file tree
Showing 6 changed files with 18 additions and 42 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/centos.yml
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,7 @@ jobs:
python3 -m pip install --upgrade pip
python3 -m pip install dataclasses
- name: Setup cmake
uses: jwlawson/actions-setup-cmake@v1.13
uses: jwlawson/actions-setup-cmake@v2
with:
cmake-version: '3.22.x'

Expand Down Expand Up @@ -177,6 +177,6 @@ jobs:
path: ${{ steps.or-install.outputs.archive_path }}
- name: Publish OR-Tools install asset
if: ${{ env.RELEASE_CREATED == 'true' }}
uses: softprops/action-gh-release@v1
uses: softprops/action-gh-release@v2
with:
files: ${{ steps.or-install.outputs.archive_path }}
8 changes: 4 additions & 4 deletions .github/workflows/oracle.yml
Original file line number Diff line number Diff line change
Expand Up @@ -97,7 +97,7 @@ jobs:
python3 -m pip install protobuf mypy-protobuf absl-py setuptools wheel pandas virtualenv
- name: Setup cmake
uses: jwlawson/actions-setup-cmake@v1.13
uses: jwlawson/actions-setup-cmake@v2
with:
cmake-version: '3.26.x'

Expand Down Expand Up @@ -199,7 +199,7 @@ jobs:
path: ${{ steps.or-install.outputs.archive_path }}
- name: Publish OR-Tools install asset
if: ${{ env.RELEASE_CREATED == 'true' }}
uses: softprops/action-gh-release@v1
uses: softprops/action-gh-release@v2
with:
files: ${{ steps.or-install.outputs.archive_path }}

Expand All @@ -224,7 +224,7 @@ jobs:
path: ${{ steps.wheel.outputs.archive_path }}
- name: Publish OR-Tools wheel asset
if: ${{ matrix.cmake.python == 'ON' && env.RELEASE_CREATED == 'true' }}
uses: softprops/action-gh-release@v1
uses: softprops/action-gh-release@v2
with:
files: ${{ steps.wheel.outputs.archive_path }}

Expand Down Expand Up @@ -255,6 +255,6 @@ jobs:
path: ${{ steps.jar.outputs.archive_path }}
- name: Publish OR-Tools jar asset
if: ${{ matrix.cmake.java == 'ON' && env.RELEASE_CREATED == 'true' }}
uses: softprops/action-gh-release@v1
uses: softprops/action-gh-release@v2
with:
files: ${{ steps.jar.outputs.archive_path }}
16 changes: 5 additions & 11 deletions .github/workflows/ubuntu.yml
Original file line number Diff line number Diff line change
Expand Up @@ -92,7 +92,7 @@ jobs:
run: >
python -m pip install absl-py mypy mypy-protobuf
- name: Setup cmake
uses: jwlawson/actions-setup-cmake@v1.13
uses: jwlawson/actions-setup-cmake@v2
with:
cmake-version: '3.26.x'

Expand Down Expand Up @@ -195,12 +195,6 @@ jobs:
APPENDIX_WITH_SHARED="${OS}${WITH_SHARED}${WITH_SIRIUS}"
echo "appendix_with_shared=$APPENDIX_WITH_SHARED" >> $GITHUB_OUTPUT
- name: Get release
if: ${{ env.RELEASE_CREATED == 'true' }}
id: get_release
uses:
bruceadams/[email protected]

- name: Prepare OR-Tools install
if: ${{ matrix.cmake.publish-cxx-or == 'ON' }}
id: or-install
Expand All @@ -221,7 +215,7 @@ jobs:
path: ${{ steps.or-install.outputs.archive_path }}
- name: Publish OR-Tools install asset
if: ${{ env.RELEASE_CREATED == 'true' && matrix.cmake.publish-cxx-or == 'ON' }}
uses: softprops/action-gh-release@v1
uses: softprops/action-gh-release@v2
with:
files: ${{ steps.or-install.outputs.archive_path }}

Expand All @@ -248,7 +242,7 @@ jobs:
path: ${{ steps.wheel.outputs.archive_path }}
- name: Publish OR-Tools wheel asset
if: ${{ env.RELEASE_CREATED == 'true' && matrix.cmake.python == 'ON' }}
uses: softprops/action-gh-release@v1
uses: softprops/action-gh-release@v2
with:
files: ${{ steps.wheel.outputs.archive_path }}

Expand All @@ -275,7 +269,7 @@ jobs:
path: ${{ steps.jar.outputs.archive_path }}
- name: Publish OR-Tools jar asset
if: ${{ env.RELEASE_CREATED == 'true' && matrix.cmake.java == 'ON' }}
uses: softprops/action-gh-release@v1
uses: softprops/action-gh-release@v2
with:
files: ${{ steps.jar.outputs.archive_path }}

Expand Down Expand Up @@ -303,6 +297,6 @@ jobs:
path: ${{ steps.dotnet.outputs.archive_path }}
- name: Publish OR-Tools dotnet asset
if: ${{ env.RELEASE_CREATED == 'true' && matrix.cmake.dotnet == 'ON' }}
uses: softprops/action-gh-release@v1
uses: softprops/action-gh-release@v2
with:
files: ${{ steps.dotnet.outputs.archive_path }}
10 changes: 2 additions & 8 deletions .github/workflows/windows-cpp.yml
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@ jobs:
path: "patch"

- name: Set up Python
uses: actions/setup-python@v4
uses: actions/setup-python@v5
with:
python-version: "3.8"

Expand Down Expand Up @@ -150,12 +150,6 @@ jobs:
APPENDIX_WITH_SHARED="${OS}${WITH_SHARED}${WITH_SIRIUS}"
echo "appendix_with_shared=$APPENDIX_WITH_SHARED" >> $GITHUB_OUTPUT
- name: Get release
if: ${{ env.RELEASE_CREATED == 'true' }}
id: get_release
uses:
bruceadams/[email protected]

- name: install zip
shell: cmd
run: |
Expand All @@ -178,6 +172,6 @@ jobs:
path: ${{ steps.or-install.outputs.archive_path }}
- name: Publish OR-Tools install asset
if: ${{ env.RELEASE_CREATED == 'true' }}
uses: softprops/action-gh-release@v1
uses: softprops/action-gh-release@v2
with:
files: build/${{ steps.or-install.outputs.archive_name }}
14 changes: 4 additions & 10 deletions .github/workflows/windows-java-dotnet.yml
Original file line number Diff line number Diff line change
Expand Up @@ -52,12 +52,12 @@ jobs:
path: "patch"

- name: Setup .NET 6.0
uses: actions/setup-dotnet@v3
uses: actions/setup-dotnet@v4
with:
dotnet-version: 6.0.x

- name: Set up Python
uses: actions/setup-python@v4
uses: actions/setup-python@v5
with:
python-version: "3.9"

Expand Down Expand Up @@ -146,12 +146,6 @@ jobs:
APPENDIX_WITH_SHARED="${OS}${WITH_SHARED}"
echo "appendix_with_shared=$APPENDIX_WITH_SHARED" >> $GITHUB_OUTPUT
- name: Get release
if: ${{ env.RELEASE_CREATED == 'true' }}
id: get_release
uses:
bruceadams/[email protected]

- name: install zip
shell: cmd
run: |
Expand All @@ -178,7 +172,7 @@ jobs:
path: ${{ steps.jar.outputs.archive_path }}
- name: Publish OR-Tools jar asset
if: ${{ env.RELEASE_CREATED == 'true' }}
uses: softprops/action-gh-release@v1
uses: softprops/action-gh-release@v2
with:
files: build/${{ steps.jar.outputs.archive_name }}

Expand All @@ -204,6 +198,6 @@ jobs:
path: ${{ steps.dotnet.outputs.archive_path }}
- name: Publish OR-Tools dotnet asset
if: ${{ env.RELEASE_CREATED == 'true' }}
uses: softprops/action-gh-release@v1
uses: softprops/action-gh-release@v2
with:
files: build/${{ steps.dotnet.outputs.archive_name }}
8 changes: 1 addition & 7 deletions .github/workflows/windows-python.yml
Original file line number Diff line number Diff line change
Expand Up @@ -138,12 +138,6 @@ jobs:
APPENDIX_WITH_SHARED="${OS}${WITH_SHARED}"
echo "appendix_with_shared=$APPENDIX_WITH_SHARED" >> $GITHUB_OUTPUT
- name: Get release
if: ${{ env.RELEASE_CREATED == 'true' }}
id: get_release
uses:
bruceadams/[email protected]

- name: install zip
shell: cmd
run: |
Expand All @@ -170,6 +164,6 @@ jobs:
path: ${{ steps.wheel.outputs.archive_path }}
- name: Publish OR-Tools wheel asset
if: ${{ env.RELEASE_CREATED == 'true' }}
uses: softprops/action-gh-release@v1
uses: softprops/action-gh-release@v2
with:
files: build/${{ steps.wheel.outputs.archive_name }}

0 comments on commit f0bb172

Please sign in to comment.