Add unistd C++ library #121
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Build | |
on: [push, pull_request] | |
jobs: | |
build-host: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v3 | |
- name: Configure CMake | |
run: cmake --preset dev-host | |
- name: Build | |
run: cmake --build build/host | |
- name: Test | |
run: ctest --test-dir build/host | |
build: | |
runs-on: ubuntu-latest | |
container: | |
image: ghcr.io/toltec-dev/base:v2.3 | |
steps: | |
- uses: actions/checkout@v2 | |
- name: Configure CMake | |
run: cmake --preset release-toltec | |
- name: Build | |
run: cmake --build build/release-toltec | |
- name: Package | |
run: cmake --build build/release-toltec --target package | |
- name: Upload | |
uses: actions/upload-artifact@v2 | |
with: | |
name: package | |
path: build/release-toltec/rm2stuff.ipk | |
release: | |
runs-on: ubuntu-latest | |
needs: build | |
if: ${{ startsWith(github.ref, 'refs/tags/v') }} | |
steps: | |
- name: Download package | |
id: download_package | |
uses: actions/download-artifact@v2 | |
with: | |
name: package | |
- name: Create release | |
id: create_release | |
uses: actions/create-release@v1 | |
env: | |
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
with: | |
tag_name: ${{ github.ref }} | |
release_name: Release ${{ github.ref }} | |
draft: true | |
prerelease: true | |
- run: ls -la | |
- name: Upload Release Package | |
id: upload-release-asset | |
uses: actions/upload-release-asset@v1 | |
env: | |
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
with: | |
upload_url: ${{ steps.create_release.outputs.upload_url }} | |
asset_path: rm2stuff.ipk | |
asset_name: rm2stuff.ipk | |
asset_content_type: application/gzip | |