Skip to content

Commit

Permalink
Fix Release/CI workflows (#89)
Browse files Browse the repository at this point in the history
* fix(workflows/release): Sync actions/upload-artifact and actions/download-artifact versions (v3)

* fix(workflows/ci): Bumps actions/checkout@v2 to actions/checkout@v4
  • Loading branch information
fuzzypixelz authored Dec 18, 2023
1 parent 31f593f commit 86b7165
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 10 deletions.
9 changes: 4 additions & 5 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,13 +12,14 @@ jobs:
build:
name: Build on ${{ matrix.os }}
runs-on: ${{ matrix.os }}
strategy:
strategy:
fail-fast: false
matrix:
os: [ubuntu-latest, macOS-latest]

steps:
- uses: actions/checkout@v2
- name: Clone this repository
uses: actions/checkout@v4

- name: install zenoh-cpp
shell: bash
Expand Down Expand Up @@ -54,16 +55,14 @@ jobs:
cd build
cmake --build . --target tests

- name: run tests
shell: bash
run: |
cd build
ctest
- name: Upload artifact
uses: actions/upload-artifact@v2
uses: actions/upload-artifact@v3
with:
# Artifact name
name: zenoh-cpp-${{ matrix.os }}
Expand Down
17 changes: 12 additions & 5 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,13 +20,14 @@ on:
- cron: "0 0 * * 1-5"
workflow_dispatch:


jobs:
preps:
name: Preparation
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Clone this repository
uses: actions/checkout@v4

- name: Environment setup
id: env
shell: bash
Expand Down Expand Up @@ -66,13 +67,16 @@ jobs:
needs: preps
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Clone this repository
uses: actions/checkout@v4

- name: Make packages
shell: bash
run: |
mkdir -p build && cd build
cmake ../install -DCPACK_PACKAGE_VERSION=${{ needs.preps.outputs.PKG_VERSION }}
cmake --build . --target package
- name: Packaging
id: package
shell: bash
Expand All @@ -91,8 +95,9 @@ jobs:
zip ${DEB_PKG_NAME} *.deb
echo "Packaging ${RPM_PKG_NAME}:"
zip ${RPM_PKG_NAME} *.rpm
- name: "Upload packages"
uses: actions/upload-artifact@master
uses: actions/upload-artifact@v3
with:
name: Upload packages
path: |
Expand All @@ -107,13 +112,15 @@ jobs:
runs-on: ubuntu-latest
steps:
- name: Download result of previous builds
uses: actions/download-artifact@v2
uses: actions/download-artifact@v3
with:
path: ARTIFACTS

- name: Publish as github release
uses: softprops/action-gh-release@v1
with:
files: ARTIFACTS/*/*.*

- name: Publish to download.eclipse.org/zenoh
env:
SSH_TARGET: [email protected]
Expand Down

0 comments on commit 86b7165

Please sign in to comment.