Skip to content

Commit

Permalink
add build for viewer
Browse files Browse the repository at this point in the history
  • Loading branch information
0xcaff committed Sep 23, 2024
1 parent 3a0a39d commit 31cffe1
Showing 1 changed file with 38 additions and 0 deletions.
38 changes: 38 additions & 0 deletions .github/workflows/viewer.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,38 @@
on:
workflow_dispatch:
push:
tags:
- '*'
branches:
- main
- master

jobs:
build:
name: build ${{ matrix.platform }} ${{ matrix.target }}
strategy:
matrix:
include:
- platform: windows-latest
target: x86_64-pc-windows-msvc
output: extern_traces_viewer.exe
- platform: macos-latest
target: aarch64-apple-darwin
output: extern_traces_viewer
- platform: ubuntu-latest
target: x86_64-unknown-linux-gnu
output: extern_traces_viewer

runs-on: ${{ matrix.platform }}

steps:
- uses: actions/checkout@v4

- run: cargo build --target ${{ matrix.target }} --release

- name: save artifacts
if: success()
uses: actions/upload-artifact@v4
with:
name: build-${{ matrix.platform }}-${{ matrix.target }}
path: target/${{ matrix.target }}/release/${{ matrix.output }}

0 comments on commit 31cffe1

Please sign in to comment.