Artifact QOL fixes
All checks were successful
Build & Upload tux-dock / build (push) Successful in 7s
All checks were successful
Build & Upload tux-dock / build (push) Successful in 7s
This commit is contained in:
parent
01546a0498
commit
6cca377d2f
1 changed files with 17 additions and 7 deletions
|
|
@ -1,28 +1,38 @@
|
||||||
name: Build & Upload tux-dock
|
name: Build & Upload tux-dock
|
||||||
|
|
||||||
on: [push]
|
on:
|
||||||
|
push:
|
||||||
|
branches:
|
||||||
|
- main
|
||||||
|
- dev
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
build:
|
build:
|
||||||
runs-on: [self-hosted]
|
runs-on: [self-hosted]
|
||||||
steps:
|
steps:
|
||||||
- name: Manual clone
|
- name: Clone current branch
|
||||||
run: |
|
run: |
|
||||||
git clone https://mentalnet.xyz/forgejo/markmental/tuxdock.git .
|
git clone --branch ${{ github.ref_name }} https://mentalnet.xyz/forgejo/markmental/tuxdock.git .
|
||||||
echo "✅ Repository cloned successfully"
|
echo "✅ Checked out branch ${{ github.ref_name }}"
|
||||||
|
|
||||||
- name: Compile tux-dock
|
- name: Compile tux-dock
|
||||||
run: |
|
run: |
|
||||||
g++ -std=c++17 main.cpp -o tux-dock
|
g++ -std=c++17 main.cpp -o tux-dock
|
||||||
echo "🎉 tux-dock successfully compiled!"
|
chmod +x tux-dock
|
||||||
|
echo "🎉 tux-dock successfully compiled and marked executable!"
|
||||||
|
|
||||||
- name: Verify build
|
- name: Verify build
|
||||||
run: file tux-dock
|
run: file tux-dock
|
||||||
|
|
||||||
|
- name: Prepare artifact directory
|
||||||
|
run: |
|
||||||
|
mkdir -p build/${{ github.ref_name }}
|
||||||
|
mv tux-dock build/${{ github.ref_name }}/
|
||||||
|
echo "📁 Prepared build directory: build/${{ github.ref_name }}/tux-dock"
|
||||||
|
|
||||||
- name: Upload build artifact
|
- name: Upload build artifact
|
||||||
uses: actions/upload-artifact@v3
|
uses: actions/upload-artifact@v3
|
||||||
with:
|
with:
|
||||||
# The artifact itself will be a zip automatically
|
|
||||||
name: tux-dock-linux-x86_64
|
name: tux-dock-linux-x86_64
|
||||||
path: tux-dock
|
path: build/
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue