Skip to content

Commit

Permalink
ci: address gha warnings
Browse files Browse the repository at this point in the history
  • Loading branch information
vicentebolea committed Jul 26, 2024
1 parent c75e1c5 commit d1efb93
Show file tree
Hide file tree
Showing 3 changed files with 16 additions and 18 deletions.
22 changes: 11 additions & 11 deletions .github/workflows/everything.yml
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,7 @@ jobs:
ls -la *-changed-files.txt
NUM_CHANGES=$(wc -l < filtered-changed-files.txt)
echo "Number of files changed (filtered): ${NUM_CHANGES}"
echo "::set-output name=num_code_changes::${NUM_CHANGES}"
echo "num_code_changes=${NUM_CHANGES}" >> $GITHUB_OUTPUT
#######################################
# Formatting jobs
Expand Down Expand Up @@ -176,7 +176,7 @@ jobs:
ref: ${{ github.event.pull_request.head.sha }}
path: source
- name: Restore cache
uses: actions/cache/restore@v3
uses: actions/cache/restore@v4
id: restore-cache
with:
path: .ccache
Expand All @@ -196,7 +196,7 @@ jobs:
- name: Print ccache statistics
run: ccache -s | tee $GITHUB_STEP_SUMMARY
- name: Save cache
uses: actions/cache/save@v3
uses: actions/cache/save@v4
if: ${{ github.ref_name == 'master' && steps.restore-cache.outputs.cache-hit != 'true' }}
id: save-cache
with:
Expand Down Expand Up @@ -241,7 +241,7 @@ jobs:
ref: ${{ github.event.pull_request.head.sha }}
path: source
- name: Restore cache
uses: actions/cache/restore@v3
uses: actions/cache/restore@v4
id: restore-cache
with:
path: .ccache
Expand All @@ -261,7 +261,7 @@ jobs:
- name: Print ccache statistics
run: ccache -s
- name: Save cache
uses: actions/cache/save@v3
uses: actions/cache/save@v4
if: ${{ github.ref_name == 'master' && steps.restore-cache.outputs.cache-hit != 'true' }}
id: save-cache
with:
Expand Down Expand Up @@ -312,7 +312,7 @@ jobs:
- name: Setup
run: gha/scripts/ci/gh-actions/macos-setup.sh
- name: Restore cache
uses: actions/cache/restore@v3
uses: actions/cache/restore@v4
id: restore-cache
with:
path: .ccache
Expand All @@ -330,7 +330,7 @@ jobs:
- name: Print ccache statistics
run: ccache -s
- name: Save cache
uses: actions/cache/save@v3
uses: actions/cache/save@v4
if: ${{ github.ref_name == 'master' && steps.restore-cache.outputs.cache-hit != 'true' }}
id: save-cache
with:
Expand Down Expand Up @@ -433,7 +433,7 @@ jobs:
docker save -o ci-docker.tar ornladios/adios2:ci-tmp
ls -lah ci-docker.tar
- name: Upload
uses: actions/upload-artifact@v2
uses: actions/upload-artifact@v4
with:
retention-days: 1
name: ci-docker ${{ matrix.baseos }} ${{ github.sha }}
Expand Down Expand Up @@ -490,7 +490,7 @@ jobs:
ref: ${{ matrix.ref }}
path: source
- name: Download CI docker image
uses: actions/download-artifact@v2
uses: actions/download-artifact@v4
with:
name: ci-docker ubuntu-bionic ${{ github.sha }}
- name: Initialize containers
Expand Down Expand Up @@ -550,7 +550,7 @@ jobs:
ref: ${{ github.event.pull_request.head.sha }}
path: source
- name: Initialize CodeQL
uses: github/codeql-action/init@v2
uses: github/codeql-action/init@v3
with:
languages: ${{ matrix.language }}
config: |
Expand All @@ -567,7 +567,7 @@ jobs:
- name: Build
run: gha/scripts/ci/gh-actions/run.sh build
- name: Perform CodeQL Analysis
uses: github/codeql-action/analyze@v2
uses: github/codeql-action/analyze@v3
with:
category: "/language:${{matrix.language}}"

Expand Down
8 changes: 4 additions & 4 deletions .github/workflows/pypackaging.yml
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ jobs:
- name: Build SDist
run: pipx run build --sdist

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

Expand All @@ -60,7 +60,7 @@ jobs:
CIBW_BUILD: cp*-manylinux_x86_64

- name: Upload wheels
uses: actions/upload-artifact@v3
uses: actions/upload-artifact@v4
with:
path: wheelhouse/*.whl

Expand All @@ -77,7 +77,7 @@ jobs:
github.event.action == 'published'
)
steps:
- uses: actions/download-artifact@v3
- uses: actions/download-artifact@v4
with:
name: artifact
path: dist
Expand All @@ -94,7 +94,7 @@ jobs:
# Upload to Test PyPI for every commit on main branch
if: github.event_name == 'push' && github.event.ref == 'refs/heads/master'
steps:
- uses: actions/download-artifact@v3
- uses: actions/download-artifact@v4
with:
name: artifact
path: dist
Expand Down
4 changes: 1 addition & 3 deletions scripts/ci/gh-actions/macos-setup.sh
Original file line number Diff line number Diff line change
Expand Up @@ -34,15 +34,13 @@ echo "Installing CMake"
echo "Installing Ninja"
brew install ninja

echo "Installing GCC"
brew install gcc
sudo ln -v -s "$(which gfortran-11)" /usr/local/bin/gfortran

echo "Installing blosc compression"
brew install c-blosc

echo "Installing python3"
brew install python numpy
brew install numpy

echo "Installing ccache"
brew install ccache
Expand Down

0 comments on commit d1efb93

Please sign in to comment.