This commit is contained in:
parent
22613a025e
commit
c692a2b56b
@ -2,8 +2,8 @@ name: Raspberry Pi 4 Build
|
|||||||
run-name: ${{ gitea.actor }} is testing out Gitea Actions
|
run-name: ${{ gitea.actor }} is testing out Gitea Actions
|
||||||
on:
|
on:
|
||||||
push:
|
push:
|
||||||
branches:
|
tags:
|
||||||
- "main"
|
- "v*"
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
Explore-Gitea-Actions:
|
Explore-Gitea-Actions:
|
||||||
@ -19,12 +19,33 @@ jobs:
|
|||||||
- name: Installing Dependencies
|
- name: Installing Dependencies
|
||||||
run: sudo apt install -y libasound2-dev libxcb1-dev libxcb-xinput-dev libxcb-cursor-dev
|
run: sudo apt install -y libasound2-dev libxcb1-dev libxcb-xinput-dev libxcb-cursor-dev
|
||||||
|
|
||||||
- name: echo "Building project..."
|
- name: Building/Compiling Project
|
||||||
run: |
|
run: |
|
||||||
cd ${{ gitea.workspace }}
|
cd ${{ gitea.workspace }}
|
||||||
cmake -DCMAKE_BUILD_TYPE=Debug -DLINUX_WINDOW_SYSTEM:STRING=XCB .
|
cmake -DCMAKE_BUILD_TYPE=Debug -DLINUX_WINDOW_SYSTEM:STRING=XCB .
|
||||||
cmake --build . --config Debug
|
cmake --build . --config Debug
|
||||||
|
|
||||||
|
- 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
|
||||||
|
|
||||||
- name: List files in the repository
|
- name: List files in the repository
|
||||||
run: |
|
run: |
|
||||||
ls ${{ gitea.workspace }}
|
ls ${{ gitea.workspace }}
|
||||||
|
Loading…
Reference in New Issue
Block a user