Skip to content

Commit

Permalink
update workflow, move to ubuntu 20.04
Browse files Browse the repository at this point in the history
  • Loading branch information
stuqdog committed Dec 20, 2024
1 parent b28f649 commit 858213e
Showing 1 changed file with 16 additions and 10 deletions.
26 changes: 16 additions & 10 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -36,8 +36,7 @@ jobs:
if: inputs.version != 'nobump'
run: |
cargo install cargo-release
# CR erodkin: commented out execute to have dry run for testing, revert before release
cargo release version ${{ inputs.version }} --no-confirm #--execute --no-confirm
cargo release version ${{ inputs.version }} --execute --no-confirm
- name: Which Version
id: which_version
Expand Down Expand Up @@ -93,9 +92,6 @@ jobs:
- name: Build
run: |
cargo build --release --target=${{ matrix.target }}
- name: Test
run: |
echo "test" > builds/test.txt
- name: Copy
run: |
cp target/${{ matrix.target }}/release/libviam_rust_utils.dylib builds/libviam_rust_utils-${{ matrix.platform }}.dylib
Expand All @@ -106,8 +102,8 @@ jobs:
- name: Upload artifacts
uses: actions/upload-artifact@v4
with:
name: builds
path: builds
name: builds-${{ matrix.platform }}
path: builds/*

build_linux:
if: github.repository_owner == 'viamrobotics'
Expand All @@ -127,7 +123,7 @@ jobs:
runs-on: buildjet-8vcpu-ubuntu-2204-arm
- target: x86_64-unknown-linux-gnu
platform: linux_x86_64
image: ghcr.io/cross-rs/x86_64-unknown-linux-gnu:main-centos
image: ubuntu:20.04
runs-on: buildjet-4vcpu-ubuntu-2204
- target: x86_64-unknown-linux-musl
platform: musllinux_x86_64
Expand Down Expand Up @@ -201,12 +197,22 @@ jobs:
cp target/${{ matrix.target }}/release/libviam_rust_utils.a builds/libviam_rust_utils-${{ matrix.platform }}.a
- name: Upload artifacts
uses: actions/upload-artifact@v4
with:
name: builds-${{ matrix.platform }}
path: builds/*

merge:
needs: [build_macos, build_linux]
runs-on: ubuntu-latest
steps:
- name: Merge artifacts
uses: actions/upload-artifact/merge@v4
with:
name: builds
path: builds
pattern: builds-*

release:
needs: [prepare, build_macos, build_linux]
needs: [prepare, merge]
if: github.repository_owner == 'viamrobotics'
runs-on: ubuntu-latest

Expand Down

0 comments on commit 858213e

Please sign in to comment.