Compare commits

...

9 Commits

Author SHA1 Message Date
Mirror Bot
0aaa183326 chore: strip .github for mirror push 2026-03-19 01:55:26 +00:00
5749d461ca Remove commented test code from main.cpp 2026-03-19 12:55:19 +11:00
009fb2f28c Create mirror.yml 2026-03-19 12:50:13 +11:00
reallynniroprobably
e292bbc05b Delete release.yml 2026-03-17 00:18:37 +11:00
reallynniroprobably
f78002daca Update main.cpp 2026-03-17 00:16:01 +11:00
reallynniroprobably
c2747f5538 Update release.yml 2026-03-17 00:12:25 +11:00
reallynniroprobably
f7661ecb20 Merge branch 'main' of https://github.com/reallynniroprobably/splain 2026-03-17 00:09:21 +11:00
reallynniroprobably
08aea67cfb removed unused headers 2026-03-16 21:12:40 +11:00
6729560fa9 Update release.yml 2026-03-16 12:48:39 +11:00
2 changed files with 0 additions and 129 deletions

View File

@@ -1,125 +0,0 @@
# .github/workflows/release.yml
name: Release
on:
push:
tags:
- 'v*'
jobs:
build:
strategy:
matrix:
include:
# --- LINUX ---
- os: ubuntu-latest
arch: x86_64
target_name: creep-linux-x86_64
- os: ubuntu-latest
arch: arm64
target_name: creep-linux-arm64
# --- WINDOWS ---
- os: windows-latest
arch: x86_64
target_name: creep-windows-x86_64.exe
- os: windows-latest
arch: arm64
target_name: creep-windows-arm64.exe
# --- MACOS (Apple Silicon only) ---
- os: macos-latest
arch: arm64
target_name: creep-macos-arm64
runs-on: ${{ matrix.os }}
steps:
- name: Checkout code
uses: actions/checkout@v4
# --- LINUX ARM64 ---
# GitHub doesn't have native Linux ARM runners on free tier,
# so we cross-compile using a QEMU emulated environment
- name: Set up QEMU (Linux ARM64 only)
if: matrix.os == 'ubuntu-latest' && matrix.arch == 'arm64'
uses: docker/setup-qemu-action@v3
- name: Install ARM64 cross-compiler (Linux ARM64 only)
if: matrix.os == 'ubuntu-latest' && matrix.arch == 'arm64'
run: sudo apt-get install -y gcc-aarch64-linux-gnu g++-aarch64-linux-gnu
# --- CONFIGURE ---
- name: Configure (Linux x86_64)
if: matrix.os == 'ubuntu-latest' && matrix.arch == 'x86_64'
run: cmake -B build -DCMAKE_BUILD_TYPE=Release
- name: Configure (Linux ARM64 cross-compile)
if: matrix.os == 'ubuntu-latest' && matrix.arch == 'arm64'
run: |
cmake -B build -DCMAKE_BUILD_TYPE=Release \
-DCMAKE_SYSTEM_NAME=Linux \
-DCMAKE_SYSTEM_PROCESSOR=aarch64 \
-DCMAKE_C_COMPILER=aarch64-linux-gnu-gcc \
-DCMAKE_CXX_COMPILER=aarch64-linux-gnu-g++
- name: Configure (Windows x86_64)
if: matrix.os == 'windows-latest' && matrix.arch == 'x86_64'
run: cmake -B build -DCMAKE_BUILD_TYPE=Release -A x64
- name: Configure (Windows ARM64)
if: matrix.os == 'windows-latest' && matrix.arch == 'arm64'
run: cmake -B build -DCMAKE_BUILD_TYPE=Release -A ARM64
- name: Configure (macOS ARM64)
if: matrix.os == 'macos-latest'
run: cmake -B build -DCMAKE_BUILD_TYPE=Release -DCMAKE_OSX_ARCHITECTURES=arm64
# --- BUILD ---
- name: Build
run: cmake --build build --config Release
# --- RENAME & UPLOAD ---
- name: Rename binary (Linux / macOS)
if: runner.os != 'Windows'
run: mv build/creep ${{ matrix.target_name }}
- name: Rename binary (Windows)
if: runner.os == 'Windows'
run: mv build/Release/creep.exe ${{ matrix.target_name }}
- name: Upload artifact
uses: actions/upload-artifact@v4
with:
name: ${{ matrix.target_name }}
path: ${{ matrix.target_name }}
release:
needs: build
runs-on: ubuntu-latest
steps:
- name: Download all artifacts
uses: actions/download-artifact@v4
with:
path: artifacts/
- name: Create GitHub Release
uses: softprops/action-gh-release@v2
with:
files: artifacts/**/*
```
---
## What you'll get on a release
A GitHub Release with these five files attached:
```
creep-linux-x86_64
creep-linux-arm64
creep-windows-x86_64.exe
creep-windows-arm64.exe
creep-macos-arm64

View File

@@ -1,5 +1,3 @@
#include <filesystem>
#include <ios>
#include <iostream> #include <iostream>
#include <string> #include <string>
#include <vector> #include <vector>
@@ -58,7 +56,5 @@ int main(int argc, char *argv[]) {
} else { } else {
std::cout << "Shell could not be detected\n"; std::cout << "Shell could not be detected\n";
} }
}
return 0; return 0;
} }