forked from jl777/SuperNET
-
Notifications
You must be signed in to change notification settings - Fork 94
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
246 changed files
with
22,247 additions
and
9,679 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
FROM docker.io/debian:buster-slim | ||
FROM docker.io/debian:10 | ||
|
||
MAINTAINER Onur Özkan <[email protected]> | ||
|
||
|
@@ -10,6 +10,7 @@ RUN apt-get install -y \ | |
ca-certificates \ | ||
curl \ | ||
wget \ | ||
unzip \ | ||
gnupg | ||
|
||
RUN ln -s /usr/bin/python3 /bin/python | ||
|
@@ -26,11 +27,11 @@ RUN ./llvm.sh 16 | |
|
||
RUN rm ./llvm.sh | ||
|
||
RUN ln -s /usr/bin/clang-16 /usr/bin/clang | ||
|
||
ENV AR=/usr/bin/llvm-ar-16 | ||
ENV CC=/usr/bin/clang-16 | ||
|
||
RUN ln -s /usr/bin/clang-16 /usr/bin/clang | ||
|
||
RUN mkdir -m 0755 -p /etc/apt/keyrings | ||
|
||
RUN curl -fsSL https://download.docker.com/linux/debian/gpg | gpg --dearmor -o /etc/apt/keyrings/docker.gpg | ||
|
@@ -47,6 +48,9 @@ RUN apt-get install -y \ | |
containerd.io \ | ||
docker-buildx-plugin | ||
|
||
RUN curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh -s -- -y | ||
RUN curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh -s -- --profile minimal --default-toolchain nightly-2022-10-29 -y | ||
|
||
RUN wget https://github.com/protocolbuffers/protobuf/releases/download/v3.20.1/protoc-3.20.1-linux-x86_64.zip | ||
RUN unzip protoc-3.20.1-linux-x86_64.zip && mv ./include/google /usr/include/google | ||
|
||
ENV PATH="/root/.cargo/bin:$PATH" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,50 @@ | ||
name: Install Dependencies | ||
description: Install non-cargo dependencies in an OS-agnostic way | ||
|
||
inputs: | ||
deps: | ||
description: "Dependencies to install (format: ('list' 'of' 'dependencies'))." | ||
required: true | ||
temp: | ||
description: "A temporary directory path that can be used to store the installed binaries if needed." | ||
|
||
# NOTE: Don't install binaries in the project directory because the directory might be checked out later. | ||
runs: | ||
using: 'composite' | ||
steps: | ||
- name: Install protoc (Linux) | ||
env: | ||
TMP: ${{ inputs.temp || runner.temp }} | ||
if: runner.os == 'Linux' && contains(inputs.deps, 'protoc') | ||
shell: bash | ||
run: | | ||
wget https://github.com/protocolbuffers/protobuf/releases/download/v25.3/protoc-25.3-linux-x86_64.zip | ||
unzip protoc-25.3-linux-x86_64 -d "$TMP/protobuf" | ||
echo "$TMP/protobuf/bin" >> $GITHUB_PATH | ||
- name: Install protoc (MacOS) | ||
env: | ||
TMP: ${{ inputs.temp || runner.temp }} | ||
if: runner.os == 'macOS' && contains(inputs.deps, 'protoc') | ||
shell: bash | ||
run: | | ||
wget https://github.com/protocolbuffers/protobuf/releases/download/v25.3/protoc-25.3-osx-x86_64.zip | ||
unzip protoc-25.3-osx-x86_64.zip -d "$TMP/protobuf" | ||
echo "$TMP/protobuf/bin" >> $GITHUB_PATH | ||
- name: Install protoc (Windows) | ||
env: | ||
TMP: ${{ inputs.temp || runner.temp }} | ||
if: runner.os == 'Windows' && contains(inputs.deps, 'protoc') | ||
shell: powershell | ||
run: | | ||
Invoke-WebRequest -Uri https://github.com/protocolbuffers/protobuf/releases/download/v25.3/protoc-25.3-win64.zip -OutFile protoc-25.3-win64.zip | ||
7z x protoc-25.3-win64.zip -o"$TMP\protobuf" | ||
echo "$TMP\protobuf\bin" | Out-File -FilePath $env:GITHUB_PATH -Encoding utf8 -Append | ||
- name: Install libudev (Linux) | ||
if: runner.os == 'Linux' && contains(inputs.deps, 'libudev') | ||
shell: bash | ||
run: | | ||
sudo apt-get update -y | ||
sudo apt-get install -y libudev-dev |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.