2024-01-30 18:06:16 -08:00
|
|
|
name: Raspberry Pi 4 Build
|
|
|
|
run-name: ${{ gitea.actor }} is testing out Gitea Actions
|
|
|
|
on:
|
|
|
|
push:
|
2024-01-31 14:26:51 -08:00
|
|
|
tags:
|
|
|
|
- "v*"
|
2024-01-30 18:06:16 -08:00
|
|
|
|
|
|
|
jobs:
|
|
|
|
Explore-Gitea-Actions:
|
2024-01-30 18:27:23 -08:00
|
|
|
runs-on: linux-aarch64
|
2024-01-30 18:06:16 -08:00
|
|
|
steps:
|
|
|
|
- run: echo "The job was automatically triggered by a ${{ gitea.event_name }} event."
|
|
|
|
- run: echo "This job is now running on a ${{ runner.os }} server hosted by Gitea!"
|
|
|
|
- run: echo "The name of your branch is ${{ gitea.ref }} and your repository is ${{ gitea.repository }}."
|
|
|
|
- name: Check out repository code
|
|
|
|
uses: actions/checkout@v3
|
|
|
|
- run: echo "The ${{ gitea.repository }} repository has been cloned to the runner."
|
2024-01-30 18:52:00 -08:00
|
|
|
|
|
|
|
- name: Installing Dependencies
|
2024-01-30 19:00:10 -08:00
|
|
|
run: sudo apt install -y libasound2-dev libxcb1-dev libxcb-xinput-dev libxcb-cursor-dev
|
2024-01-30 18:52:00 -08:00
|
|
|
|
2024-01-31 14:26:51 -08:00
|
|
|
- name: Building/Compiling Project
|
2024-01-31 14:15:43 -08:00
|
|
|
run: |
|
|
|
|
cd ${{ gitea.workspace }}
|
|
|
|
cmake -DCMAKE_BUILD_TYPE=Debug -DLINUX_WINDOW_SYSTEM:STRING=XCB .
|
|
|
|
cmake --build . --config Debug
|
2024-01-30 18:52:00 -08:00
|
|
|
|
2024-01-31 14:26:51 -08:00
|
|
|
- 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: false
|
|
|
|
prerelease: false
|
|
|
|
|
|
|
|
- name: 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: ./libEHS.a
|
|
|
|
asset_name: EHS
|
|
|
|
asset_content_type: application/octet-stream
|
|
|
|
|
2024-01-30 18:43:44 -08:00
|
|
|
- name: List files in the repository
|
|
|
|
run: |
|
|
|
|
ls ${{ gitea.workspace }}
|
2024-01-30 18:52:00 -08:00
|
|
|
|
2024-01-30 18:06:16 -08:00
|
|
|
- run: echo "This job's status is ${{ job.status }}."
|