mirror of
https://github.com/DarkFlippers/unleashed-firmware
synced 2024-11-14 16:57:22 +00:00
a008c38078
* Prepare Dockerfile for GitHub Actions * Add Action * Add CI rules * Move docker files into the docker directory to prevent fetching build artifacts * Cache Docker layers Co-authored-by: aanper <mail@s3f.ru>
17 lines
305 B
Bash
Executable file
17 lines
305 B
Bash
Executable file
#!/bin/bash
|
|
|
|
# A hack for GitHub Actions to not install Rust twice
|
|
if [ "$HOME" != "/root" ]; then
|
|
ln -sf /root/.rustup "$HOME/.rustup"
|
|
ln -sf /root/.cargo "$HOME/.cargo"
|
|
fi
|
|
|
|
PATH="$HOME/.cargo/bin:${PATH}"
|
|
|
|
if [ -z "$1" ]; then
|
|
bash
|
|
else
|
|
echo "Running $1"
|
|
set -ex
|
|
bash -c "$1"
|
|
fi
|