Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

test fixing dylib #11

Open
wants to merge 38 commits into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
38 commits
Select commit Hold shift + click to select a range
2523802
chmod x and formatting
ZeWaka Jan 25, 2025
5ccba07
try this?
ZeWaka Jan 25, 2025
a3260ca
try some fucked up shit
ZeWaka Jan 25, 2025
ed84b67
try this
ZeWaka Jan 25, 2025
968121e
more cursed fuckery of hell
ZeWaka Jan 25, 2025
c5ca7f3
more hellish behaivor
ZeWaka Jan 25, 2025
a82af16
fuck env
ZeWaka Jan 25, 2025
b35130f
suffering eternal
ZeWaka Jan 25, 2025
318edb9
idk man
ZeWaka Jan 25, 2025
b36c4a8
stupid py
ZeWaka Jan 25, 2025
a38330e
fucking trash
ZeWaka Jan 25, 2025
0bf4f6e
fix ci
ZeWaka Jan 25, 2025
a3b1f65
fix
ZeWaka Jan 25, 2025
1aa8396
ok this
ZeWaka Jan 25, 2025
0a76f64
debugh
ZeWaka Jan 25, 2025
9d347c9
print
ZeWaka Jan 25, 2025
7b9d582
try this cursed lua fuckery
ZeWaka Jan 25, 2025
49e86f5
uhh
ZeWaka Jan 25, 2025
b7c18df
arch linux way
ZeWaka Jan 25, 2025
d56282b
real
ZeWaka Jan 25, 2025
a5dcedd
7 not 6
ZeWaka Jan 25, 2025
cb824a6
100 gar???
ZeWaka Jan 25, 2025
2eb663f
pass pic
ZeWaka Jan 25, 2025
d886308
try
ZeWaka Jan 25, 2025
b155121
fixxx
ZeWaka Jan 25, 2025
b89e8e5
fix rs
ZeWaka Jan 25, 2025
4778504
try build in sniper to run on scout?
ZeWaka Jan 25, 2025
2dae296
try
ZeWaka Jan 25, 2025
2af9e5f
xxx
ZeWaka Jan 25, 2025
64c8dfb
cursed buffoonery
ZeWaka Jan 25, 2025
e8ae848
dbg
ZeWaka Jan 25, 2025
9d069a2
suffering
ZeWaka Jan 25, 2025
5ac190d
sniper again?
ZeWaka Jan 25, 2025
6a7967d
guh
ZeWaka Jan 25, 2025
b4dd964
gdfcg
ZeWaka Jan 25, 2025
baf5fed
fucked world
ZeWaka Jan 25, 2025
7ce4181
switch to 3?
ZeWaka Jan 25, 2025
e5dd723
absolute hellscape
ZeWaka Jan 25, 2025
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
34 changes: 19 additions & 15 deletions .editorconfig
Original file line number Diff line number Diff line change
@@ -1,15 +1,19 @@
# EditorConfig is awesome: https://EditorConfig.org

# top-most EditorConfig file
root = true

[*]
indent_style = tab
indent_size = 4
end_of_line = crlf
charset = utf-8
trim_trailing_whitespace = true
insert_final_newline = true

[*.rs]
indent_style = space
# EditorConfig is awesome: https://EditorConfig.org

# top-most EditorConfig file
root = true

[*]
indent_style = tab
indent_size = 4
end_of_line = crlf
charset = utf-8
trim_trailing_whitespace = true
insert_final_newline = true

[*.rs]
indent_style = space

[*.yml]
indent_style = space
indent_size = 2
45 changes: 45 additions & 0 deletions .github/workflows/build-lua.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,45 @@
name: Build Lua
on:
workflow_dispatch:
push:
paths:
- '.github/workflows/build-lua.yml'

jobs:
build-lua:
name: Get Steam Runtime Compatible Lua
runs-on: ubuntu-latest
steps:
- name: Download in Steam Runtime container
uses: addnab/docker-run-action@v3
with:
image: registry.gitlab.steamos.cloud/steamrt/scout/sdk
options: -v ${{ github.workspace }}:/work
run: |
set -ex
apt-get update
apt-get install -y curl

WORKDIR="/tmp/lua-build"
mkdir -p "$WORKDIR"
cd "$WORKDIR"

# Download pre-built library
curl -L "https://master.dl.sourceforge.net/project/luabinaries/5.4.2/Linux%20Libraries/lua-5.4.2_Linux313_64_lib.tar.gz?viasf=1" -o lua.tar.gz

# Extract
tar xf lua.tar.gz

# Copy library
mkdir -p /work/artifacts
cp liblua54.so /work/artifacts/

# Test the library
ldd /work/artifacts/liblua54.so || echo "Library dependencies not found!"

- name: Upload Lua library
uses: actions/upload-artifact@v4
with:
name: steamrt-lua
path: artifacts/liblua54.so
if-no-files-found: error
62 changes: 62 additions & 0 deletions .github/workflows/build-rust.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,62 @@
name: Build Rust Library
on:
workflow_dispatch:
push:
paths:
- '.github/workflows/build-rust.yml'
- 'lib/**'

jobs:
build-rust:
name: Build Rust in Steam Runtime
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4

- name: Build in Steam Runtime container
uses: addnab/docker-run-action@v3
with:
image: registry.gitlab.steamos.cloud/steamrt/scout/sdk
options: -v ${{ github.workspace }}:/work
run: |
set -ex

# Debug system info with focus on glibc
echo "System information:"
uname -a
ldd --version
strings /lib/x86_64-linux-gnu/libc.so.6 | grep GLIBC_ | sort -V

apt-get update
apt-get install -y curl build-essential gcc-9 g++-9 wget

# Download old rustup-init binary directly
mkdir -p ~/.cargo
wget -O rustup-init "https://static.rust-lang.org/rustup/archive/1.21.1/x86_64-unknown-linux-gnu/rustup-init"
chmod +x rustup-init

# Install Rust 1.63 (known to support old glibc)
RUSTUP_HOME=~/.rustup CARGO_HOME=~/.cargo ./rustup-init -y --no-modify-path --default-toolchain 1.63.0
export PATH="$HOME/.cargo/bin:$PATH"

# Verify Rust version and target
rustc --version
rustc -vV

# Use gcc-9 for linking
export CC=gcc-9
export CXX=g++-9

cd /work/lib
cargo build --release

# Copy built library
mkdir -p /work/artifacts
cp target/release/libdmi.so /work/artifacts/

- name: Upload Rust library
uses: actions/upload-artifact@v4
with:
name: steamrt-rust
path: artifacts/libdmi.so
if-no-files-found: error
Loading
Loading