Skip to content

Commit

Permalink
ci: upgrade artifacct-handling actions
Browse files Browse the repository at this point in the history
  • Loading branch information
arbimo committed Nov 21, 2024
1 parent 0ba38b9 commit 56e54ac
Showing 1 changed file with 24 additions and 21 deletions.
45 changes: 24 additions & 21 deletions .github/workflows/aries.yml
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ jobs:
- uses: actions/checkout@v3
with:
fetch-depth: 0
- uses: dtolnay/rust-toolchain@1.80.1 # fixed version to avoid failures on rust version releases
- uses: dtolnay/rust-toolchain@1.80.1 # fixed version to avoid failures on rust version releases
with:
components: clippy, rustfmt
- run: cargo fmt --all -- --check
Expand Down Expand Up @@ -77,15 +77,14 @@ jobs:
cd ../../..
git diff --exit-code
unified-planning-integration:
name: UP Integration Tests
runs-on: ubuntu-22.04
steps:
- uses: actions/checkout@v3
- uses: dtolnay/rust-toolchain@stable
- name: Submodules initialization
run: git submodule update --init # get our own copy of unified-planing repos
run: git submodule update --init # get our own copy of unified-planing repos
- name: Install python dependencies
run: python3 -m pip install -r planning/unified/requirements.txt "numpy<2"
- name: Install just
Expand All @@ -95,39 +94,43 @@ jobs:
- name: Validator tests
run: ./just ci-up-val


ipc-tests:
name: IPC Tests
runs-on: ubuntu-22.04
steps:
- uses: actions/checkout@v3
- uses: dtolnay/rust-toolchain@stable
- name: Submodules initialization
run: git submodule update --init # get our own copy of unified-planing repos
run: git submodule update --init # get our own copy of unified-planing repos
- name: Install python dependencies
run: python3 -m pip install -r planning/unified/requirements.txt "numpy<2"
- name: Install just
run: curl --proto '=https' --tlsv1.2 -sSf https://just.systems/install.sh | bash -s -- --to .
- name: Resolution
run: ./just ci-ipc


tests: # Meta-job that only requires all test-jobs to pass
needs: [ lints, unit-tests, integration-tests, unified-planning-api, unified-planning-integration, ipc-tests ]
needs:
[
lints,
unit-tests,
integration-tests,
unified-planning-api,
unified-planning-integration,
ipc-tests,
]
runs-on: ubuntu-latest
steps:
- run: true



# ================ Building & Releasing binaries.
# Only active on the master branch and when the previous validation steps passed

build: # Build release binaries for all architecture and save them as artifacts
strategy:
matrix:
os: [ ubuntu-latest, macos-latest, windows-latest ]
target: [ amd64, arm64 ]
os: [ubuntu-latest, macos-latest, windows-latest]
target: [amd64, arm64]
exclude:
- os: ubuntu-latest
target: arm64 # linux-arm64 build has linker issues, done in a distinct job
Expand Down Expand Up @@ -174,7 +177,7 @@ jobs:
mkdir -p bins/
cp target/${{ env.TARGET }}/release/up-server bins/${{ env.BINARY }}
- name: Upload artifact
uses: actions/upload-artifact@v2
uses: actions/upload-artifact@v4
with:
name: ${{ env.BINARY }}
path: bins/${{ env.BINARY }}
Expand Down Expand Up @@ -229,7 +232,7 @@ jobs:

package-python:
name: Python Package (up_aries)
needs: [ build ]
needs: [build]
runs-on: ubuntu-latest
if: (github.ref == 'refs/heads/master') || startsWith(github.ref, 'refs/tags/v')
steps:
Expand All @@ -242,10 +245,10 @@ jobs:
git describe --tags --match v[0-9]*
- uses: actions/setup-python@v4
with:
python-version: '3.8'
python-version: "3.8"
- name: Install build tools
run: pip install build
- uses: actions/download-artifact@v3
- uses: actions/download-artifact@v4
with:
path: planning/unified/plugin/artifacts
- name: Unpack artifacts
Expand All @@ -258,7 +261,7 @@ jobs:
ls -lR
python -m build --sdist
cp dist/up_aries-*.tar.gz up_aries.tar.gz
- uses: actions/upload-artifact@v3
- uses: actions/upload-artifact@v4
with:
name: up_aries.tar.gz
path: planning/unified/plugin/up_aries.tar.gz
Expand All @@ -268,10 +271,10 @@ jobs:
name: Pre Release
runs-on: ubuntu-latest
if: github.ref == 'refs/heads/master'
needs: [ tests, build, package-python ]
needs: [tests, build, package-python]
steps:
- name: Download artifact
uses: actions/download-artifact@v2
uses: actions/download-artifact@v4

- name: Display artifacts
run: ls -R
Expand All @@ -294,13 +297,13 @@ jobs:
name: Release
runs-on: ubuntu-latest
if: startsWith(github.ref, 'refs/tags/v')
needs: [ tests, build, package-python ]
needs: [tests, build, package-python]
steps:
- name: Download artifact
uses: actions/download-artifact@v2
uses: actions/download-artifact@v4

- name: Download TAR artifact for python package
uses: actions/download-artifact@v2
uses: actions/download-artifact@v4
with:
name: up_aries.tar.gz
path: dist/
Expand Down

0 comments on commit 56e54ac

Please sign in to comment.