Skip to content

Commit

Permalink
do not prepare either during test
Browse files Browse the repository at this point in the history
  • Loading branch information
purplenicole730 committed Dec 19, 2024
1 parent 628bec4 commit bb3d2e8
Showing 1 changed file with 58 additions and 58 deletions.
116 changes: 58 additions & 58 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,72 +15,72 @@ on:
- nobump

jobs:
prepare:
# if: github.repository_owner == 'viamrobotics'
runs-on: [self-hosted, x64]
container:
image: ghcr.io/viamrobotics/canon:amd64
outputs:
version: ${{ steps.which_version.outputs.version }}
sha: ${{ steps.commit.outputs.commit_long_sha }}
steps:
- name: Check if organization member
id: is_organization_member
uses: jamessingleton/[email protected]
with:
organization: viamrobotics
username: ${{ github.actor }}
token: ${{ secrets.GITHUB_TOKEN }}
# prepare:
# if: github.repository_owner == 'viamrobotics'
# runs-on: [self-hosted, x64]
# container:
# image: ghcr.io/viamrobotics/canon:amd64
# outputs:
# version: ${{ steps.which_version.outputs.version }}
# sha: ${{ steps.commit.outputs.commit_long_sha }}
# steps:
# - name: Check if organization member
# id: is_organization_member
# uses: jamessingleton/[email protected]
# with:
# organization: viamrobotics
# username: ${{ github.actor }}
# token: ${{ secrets.GITHUB_TOKEN }}

- name: Cancelling - user not part of organization
uses: andymckay/[email protected]
if: |
steps.is_organization_member.outputs.result == 'false'
# - name: Cancelling - user not part of organization
# uses: andymckay/[email protected]
# if: |
# steps.is_organization_member.outputs.result == 'false'

- name: Checkout Code
uses: actions/checkout@v3
# - name: Checkout Code
# uses: actions/checkout@v3

- name: Setup rust toolchain
uses: actions-rs/toolchain@v1
with:
toolchain: stable
# - name: Setup rust toolchain
# uses: actions-rs/toolchain@v1
# with:
# toolchain: stable

- name: Bump Version
shell: bash
if: inputs.version != 'nobump'
run: |
cargo install cargo-bump
cargo bump ${{ inputs.version }}
# - name: Bump Version
# shell: bash
# if: inputs.version != 'nobump'
# run: |
# cargo install cargo-bump
# cargo bump ${{ inputs.version }}

- name: Which Version
id: which_version
shell: bash
run: |
echo "version=$(cargo pkgid | sed 's/.*@//g')" >> $GITHUB_OUTPUT
# - name: Which Version
# id: which_version
# shell: bash
# run: |
# echo "version=$(cargo pkgid | sed 's/.*@//g')" >> $GITHUB_OUTPUT

- name: Check if release exists
uses: cardinalby/[email protected]
id: release_exists
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
releaseName: v${{ steps.which_version.outputs.version }}
doNotFailIfNotFound: "true"
# - name: Check if release exists
# uses: cardinalby/[email protected]
# id: release_exists
# env:
# GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
# with:
# releaseName: v${{ steps.which_version.outputs.version }}
# doNotFailIfNotFound: "true"

- name: Cancelling - release already exists
uses: andymckay/[email protected]
if: steps.release_exists.outputs.id != ''
# - name: Cancelling - release already exists
# uses: andymckay/[email protected]
# if: steps.release_exists.outputs.id != ''

- name: Commit + Push
id: commit
uses: EndBug/[email protected]
with:
default_author: github_actions
message: Bumping version to v${{ steps.which_version.outputs.version }} [skip ci]
# - name: Commit + Push
# id: commit
# uses: EndBug/[email protected]
# with:
# default_author: github_actions
# message: Bumping version to v${{ steps.which_version.outputs.version }} [skip ci]

build_macos:
if: github.repository_owner == 'viamrobotics'
needs: [prepare]
# if: github.repository_owner == 'viamrobotics'
# needs: [prepare]
runs-on: [self-hosted, ARM64, macOS]
strategy:
fail-fast: false
Expand Down Expand Up @@ -114,8 +114,8 @@ jobs:
path: builds

build_linux:
if: github.repository_owner == 'viamrobotics'
needs: [prepare]
# if: github.repository_owner == 'viamrobotics'
# needs: [prepare]
runs-on: [self-hosted, x64]
container:
image: ghcr.io/cross-rs/${{ matrix.image }}
Expand Down

0 comments on commit bb3d2e8

Please sign in to comment.