Skip to content

Fix xxd in github actions #128

Fix xxd in github actions

Fix xxd in github actions #128

Workflow file for this run

name: Build
on: [push, pull_request]
jobs:
build-host:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Install Deps
run: sudo apt-get install -y ninja-build libsdl2-dev xxd
- 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