Skip to content

Commit

Permalink
Revert "update system version"
Browse files Browse the repository at this point in the history
This reverts commit 0307819.
  • Loading branch information
MXWXZ committed Sep 1, 2024
1 parent 0307819 commit 1306e34
Show file tree
Hide file tree
Showing 5 changed files with 32 additions and 12 deletions.
12 changes: 9 additions & 3 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -36,17 +36,17 @@ jobs:
matrix:
platform:
- os_name: linux-x86_64
os: ubuntu-22.04
os: ubuntu-20.04
target: x86_64-unknown-linux-gnu
bin: skynet
name: skynet-linux-x86_64.tar.gz
- os_name: linux-i686
os: ubuntu-22.04
os: ubuntu-20.04
target: i686-unknown-linux-gnu
bin: skynet
name: skynet-linux-i686.tar.gz
- os_name: linux-aarch64
os: ubuntu-22.04
os: ubuntu-20.04
target: aarch64-unknown-linux-gnu
bin: skynet
name: skynet-linux-aarch64.tar.gz
Expand Down Expand Up @@ -81,6 +81,12 @@ jobs:
shell: bash
run: |
echo "${{ steps.protoc-install.outputs.path }}" >> $GITHUB_PATH
- name: Update gcc
if: ${{ matrix.platform.os == 'ubuntu-20.04'}}
shell: bash
run: |
echo "CC=gcc-10" >> $GITHUB_ENV
echo "CXX=g++-10" >> $GITHUB_ENV
- name: Build binary
uses: houseabsolute/actions-rust-cross@v0
with:
Expand Down
12 changes: 9 additions & 3 deletions .github/workflows/plugin_release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -35,15 +35,15 @@ jobs:
matrix:
platform:
- os_name: linux-x86_64
os: ubuntu-22.04
os: ubuntu-20.04
target: x86_64-unknown-linux-gnu
lib: lib$d.so
- os_name: linux-i686
os: ubuntu-22.04
os: ubuntu-20.04
target: i686-unknown-linux-gnu
lib: lib$d.so
- os_name: linux-aarch64
os: ubuntu-22.04
os: ubuntu-20.04
target: aarch64-unknown-linux-gnu
lib: lib$d.so
- os_name: windows-x86_64
Expand Down Expand Up @@ -74,6 +74,12 @@ jobs:
shell: bash
run: |
echo "${{ steps.protoc-install.outputs.path }}" >> $GITHUB_PATH
- name: Update gcc
if: ${{ matrix.platform.os == 'ubuntu-20.04'}}
shell: bash
run: |
echo "CC=gcc-10" >> $GITHUB_ENV
echo "CXX=g++-10" >> $GITHUB_ENV
- name: Build binary
uses: houseabsolute/actions-rust-cross@v0
with:
Expand Down
12 changes: 9 additions & 3 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -35,17 +35,17 @@ jobs:
matrix:
platform:
- os_name: linux-x86_64
os: ubuntu-22.04
os: ubuntu-20.04
target: x86_64-unknown-linux-gnu
bin: skynet
name: skynet-linux-x86_64.tar.gz
- os_name: linux-i686
os: ubuntu-22.04
os: ubuntu-20.04
target: i686-unknown-linux-gnu
bin: skynet
name: skynet-linux-i686.tar.gz
- os_name: linux-aarch64
os: ubuntu-22.04
os: ubuntu-20.04
target: aarch64-unknown-linux-gnu
bin: skynet
name: skynet-linux-aarch64.tar.gz
Expand Down Expand Up @@ -80,6 +80,12 @@ jobs:
shell: bash
run: |
echo "${{ steps.protoc-install.outputs.path }}" >> $GITHUB_PATH
- name: Update gcc
if: ${{ matrix.platform.os == 'ubuntu-20.04'}}
shell: bash
run: |
echo "CC=gcc-10" >> $GITHUB_ENV
echo "CXX=g++-10" >> $GITHUB_ENV
- name: Build binary
uses: houseabsolute/actions-rust-cross@v0
with:
Expand Down
2 changes: 1 addition & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
FROM ubuntu:22.04
FROM ubuntu:latest
ARG TARGETARCH

RUN useradd -s /usr/sbin/nologin -r -c "Skynet User" skynet
Expand Down
6 changes: 4 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -15,10 +15,12 @@ We offer pre-built `x86_64` and `aarch64` docker images.
2. `docker-compose up`
3. Visit `localhost:8080`.

### Pre-built libraries
### Run natively
**We do not recommend this method, use at your own risk!**

You can download pre-built libraries in our [release](https://github.com/MXWXZ/skynet/releases) page. Linux versions are built under ubuntu-22.04. If you meet glibc version errors, please build from source.
You can download pre-built libraries in our [release](https://github.com/MXWXZ/skynet/releases) page.

We offer `linux-{x86_64,i686,aarch64}`, `darwin-{x86_64,aarch64}` and `windows-x86_64` binaries. You might build from source if your platform is not included.

1. Download the release and extract.
2. (Optional) Install redis on your machine.
Expand Down

0 comments on commit 1306e34

Please sign in to comment.