Skip to content

Trex v0.2

Trex v0.2 #4

Workflow file for this run

name: Release
on:
workflow_dispatch:
release:
types: [published]
jobs:
windows:
name: Windows release
runs-on: windows-latest
steps:
- uses: actions/checkout@v3
- name: build
run: |
cmake -B build -DCMAKE_BUILD_TYPE=Release
cmake --build build --target trex --config Release
- name: pack binary
run: |
move build\Release\trex.lib .
7z a -tzip trex.zip trex.lib
- name: upload artifact
uses: actions/upload-artifact@v2
with:
name: trex-windows-msvc-x64
path: trex.zip
linux:
name: Linux release
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: build
run: |
cmake -B build -DCMAKE_BUILD_TYPE=Release
cmake --build build --target trex --config Release
- name: pack binary
run: |
mv build/libtrex.a .
tar -czf trex.tar.gz libtrex.a
- name: upload artifact
uses: actions/upload-artifact@v2
with:
name: trex-linux-gcc-x64
path: trex.tar.gz