Skip to content

Commit

Permalink
Add workflow for uploading release package
Browse files Browse the repository at this point in the history
  • Loading branch information
kaizhangNV committed Feb 12, 2024
1 parent 67d48e8 commit 4244f4b
Showing 1 changed file with 42 additions and 0 deletions.
42 changes: 42 additions & 0 deletions .github/workflows/release-linux.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,42 @@
name: Linux Release

on:
push:
# Sequence of patterns matched against refs/tags
tags:
- 'v*' # Push events to matching v*, i.e. v1.0, v20.15.10

jobs:
build:

runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v3
- name: Install prerequisite
run: sudo apt-get install ninja-build
- name: configure
run: cmake --preset linux-gcc
- name: make
run: cmake --build build/linux-gcc
- name: build release project
id: build
run: |
echo "starting to build..."
cmake --build build/linux-gcc
export TAG_NAME=`git describe --tags`
export TAG=${TAG_NAME#v}
echo "tag:$TAG"
export OS_NAME=linux
export ARCH_NAME=`uname -p`
export FALCOR_PERF_TEST_PACKAGE=falcor_perf_test-${TAG}-${OS_NAME}-${ARCH_NAME}.zip
echo "creating zip"
zip -r ${FALCOR_PERF_TEST_PACKAGE} build/linux-gcc/bin/Debug/*
echo "FALCOR_PERF_TEST_PACKAGE=${FALCOR_PERF_TEST_PACKAGE}" >> $GITHUB_OUTPUT
- name: UploadBinary
uses: softprops/action-gh-release@v1
with:
files: |
${{ steps.build.outputs.FALCOR_PERF_TEST_PACKAGE }}
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

0 comments on commit 4244f4b

Please sign in to comment.