name: Build & Upload tux-dock on: push: branches: - main - dev jobs: build: runs-on: [self-hosted] steps: - name: Clone current branch run: | git clone --branch ${{ github.ref_name }} https://mentalnet.xyz/forgejo/markmental/tuxdock.git . echo "✅ Checked out branch ${{ github.ref_name }}" - name: Compile tux-dock run: | g++ -std=c++17 main.cpp -o tux-dock chmod +x tux-dock echo "🎉 tux-dock successfully compiled and marked executable!" - name: Verify build 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 uses: actions/upload-artifact@v3 with: name: tux-dock-linux-x86_64 path: build/