Skip to content

v1.5.8

v1.5.8 #5

Workflow file for this run

name: upload artifacts
on:
release:
types: [published]
jobs:
build-and-upload:
strategy:
matrix:
os: [ubuntu-latest, macos-latest, windows-latest]
include:
- os: ubuntu-latest
filename: tibasic
release_filename: tibasic-linux
content_type: application/octet-stream
- os: macos-latest
filename: tibasic
release_filename: tibasic-osx
content_type: application/octet-stream
- os: windows-latest
filename: Release/tibasic.exe
release_filename: tibasic.exe
content_type: application/octet-stream
runs-on: ${{ matrix.os }}
steps:
- name: Checkout repository
uses: actions/checkout@v4
- uses: lukka/get-cmake@latest
- name: Create build directory
run: cmake -E make_directory ${{runner.workspace}}/build
- name: Configure CMake
working-directory: ${{runner.workspace}}/build
run: cmake ${{ github.workspace }} -DCMAKE_BUILD_TYPE=Release
- name: Build Compiler
working-directory: ${{runner.workspace}}/build
run: cmake --build . --config Release
- name: Upload to Release
uses: actions/upload-release-asset@v1
env:
GITHUB_TOKEN: ${{ github.token }}
with:
upload_url: ${{ github.event.release.upload_url }}
asset_path: ${{runner.workspace}}/build/src/${{ matrix.filename }}
asset_name: ${{ matrix.release_filename }}
asset_content_type: ${{ matrix.content_type }}