Skip to content

Commit

Permalink
Add manual build
Browse files Browse the repository at this point in the history
  • Loading branch information
jonlamb-gh committed Sep 21, 2024
1 parent 8658204 commit 1c351d0
Showing 1 changed file with 59 additions and 0 deletions.
59 changes: 59 additions & 0 deletions .github/workflows/manual.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,59 @@
name: Manual Artifacts

on:
push:
workflow_dispatch:

jobs:
package:
name: Build Release Package
timeout-minutes: 60
runs-on: ubuntu-20.04
steps:
- name: Print version
run: |
RELEASE_TAG=${{ github.ref }}
RELEASE_TAG="${RELEASE_TAG#refs/tags/}"
RELEASE_VERSION="${RELEASE_TAG#v}"
echo "RELEASE_TAG=$RELEASE_TAG" >> $GITHUB_ENV
echo "RELEASE_VERSION=$RELEASE_VERSION" >> $GITHUB_ENV
echo "Release tag: $RELEASE_TAG"
echo "Release version: $RELEASE_VERSION"
- name: Install system packages
run: |
sudo apt-get update
sudo apt-get install -y libusb-1.0-0-dev libftdi1-dev libudev-dev
- name: Checkout
uses: actions/checkout@v4

- name: Install toolchain
uses: dtolnay/rust-toolchain@stable
with:
toolchain: stable

- name: Fetch dependencies
run: cargo fetch

- name: Build release binaries
run: cargo build --release

- name: Prep artifacts
run: |
mkdir -p target/artifacts
cp target/release/modality-trace-recorder-importer target/artifacts/
cp target/release/modality-trace-recorder-tcp-collector target/artifacts/
cp target/release/modality-trace-recorder-itm-collector target/artifacts/
cp target/release/modality-trace-recorder-rtt-collector target/artifacts/
cp target/release/modality-trace-recorder-proxy-collector target/artifacts/
- name: Upload artifacts
uses: actions/upload-artifact@v4
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
name: modality-trace-recorder-plugins
path: target/artifacts/*
retention-days: 2
if-no-files-found: error

0 comments on commit 1c351d0

Please sign in to comment.