Skip to content

Remove steps from main.yml #97

Remove steps from main.yml

Remove steps from main.yml #97

Workflow file for this run

name: Build Latest
on:
push:
branches:
- '*'
paths-ignore:
- 'README.md'
- 'docs/**'
permissions:
id-token: write
contents: read
jobs:
appimage:
name: Build/Test/Upload latest
runs-on: buildjet-2vcpu-ubuntu-2204-arm
strategy:
matrix:
include:
- container: ghcr.io/seanavery/viam-cpp-base-jetson:0.0.3
TARGET: jetson
META_PATH: meta.json
- container: ghcr.io/seanavery/viam-cpp-base-pi:0.0.3
TARGET: pi
META_PATH: meta-pi.json
container:
image: ${{ matrix.container }}
options: --platform linux/arm64
steps:
- name: Check out code
uses: actions/checkout@v3
- name: Set environment variables
run: |
echo "TARGET=${{ matrix.TARGET }}" >> $GITHUB_ENV
echo "META_PATH=${{ matrix.META_PATH }}" >> $GITHUB_ENV
- name: Clean build artifacts
run: make clean
- name: Install module dependencies
run: make dep
- name: Build viam-csi binary
run: make build
- name: Build viam-csi appimage
run: make package
- name: Copy binary and appimage to bin folder
run: make bin
- name: Run appimage in fresh instance
run: |
make image-test
make test-package
- name: Get latest release version
id: get_version
run: |
apt install -y jq
LATEST_RELEASE=$(curl -s https://api.github.com/repos/${{ github.repository }}/releases/latest | jq -r .tag_name)
echo "LATEST_RELEASE_VERSION=$LATEST_RELEASE" >> $GITHUB_ENV
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
- name: Testing module env variables
run: |
echo "TARGET=${{ env.TARGET }}"
echo "META_PATH=${{ env.META_PATH }}"
echo "COMMIT_COUNT=${{ env.COMMIT_COUNT }}"
echo "LATEST_RELEASE_VERSION=${{ env.LATEST_RELEASE_VERSION }}"
echo "version: ${{ env.LATEST_RELEASE_VERSION }}-${{ github.ref_name }}.${{ github.run_number }}"