From 7199c9a61fb1a83f5e898f956cf94a72fb08400b Mon Sep 17 00:00:00 2001 From: Mike Nolan Date: Sat, 20 Jun 2026 05:36:06 -0500 Subject: [PATCH] First commit --- action.yml | 42 ++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 42 insertions(+) create mode 100644 action.yml diff --git a/action.yml b/action.yml new file mode 100644 index 0000000..636b281 --- /dev/null +++ b/action.yml @@ -0,0 +1,42 @@ +runs: Install CrossLang + +runs: + using: "composite" + + steps: + run: | + if command -v crosslang >/dev/null 2>&1; then + echo "CrossLang Already Installed" + else + case `uname -m` in + x86_64) + wget -O /tmp/crosslang.tar.gz https://redirect.tesses.net/cl-linux-amd64 + tar xvf /tmp/crosslang.tar.gz -C /usr/local + crosslang update-shell + ;; + aarch64) + wget -O /tmp/crosslang.tar.gz https://redirect.tesses.net/cl-linux-arm64 + tar xvf /tmp/crosslang.tar.gz -C /usr/local + crosslang update-shell + ;; + riscv64) + wget -O /tmp/crosslang.tar.gz https://redirect.tesses.net/cl-linux-riscv64 + tar xvf /tmp/crosslang.tar.gz -C /usr/local + crosslang update-shell + ;; + i*86) + wget -O /tmp/crosslang.tar.gz https://redirect.tesses.net/cl-linux-i386 + tar xvf /tmp/crosslang.tar.gz -C /usr/local + crosslang update-shell + ;; + ppc) + wget -O /tmp/crosslang.tar.gz https://redirect.tesses.net/cl-linux-powerpc + tar xvf /tmp/crosslang.tar.gz -C /usr/local + crosslang update-shell + ;; + *) + echo "Unsupported architecture for crosslang, Sorry :(" + exit 1 + ;; + esac + fi \ No newline at end of file