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

try to follow wy414012 #3

Open
wants to merge 17 commits into
base: stcp_dev
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
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
4 changes: 3 additions & 1 deletion .env
Original file line number Diff line number Diff line change
@@ -1 +1,3 @@
DATABASE_URL=sqlite://./db_v2.sqlite3
DATABASE_URL="sqlite://./db_v2.sqlite3"
RELAY_SERVERS="HOST1,HOST2,HOST...N"
RENDZVOUS_SERVERS="HOST1,HTST2,HOST...N"
20 changes: 10 additions & 10 deletions .github/workflows/build.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ jobs:
build:

name: Build - ${{ matrix.job.name }}
runs-on: ubuntu-20.04
runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
Expand All @@ -45,7 +45,7 @@ jobs:
- name: Install toolchain
uses: actions-rs/toolchain@v1
with:
toolchain: "1.70.0"
toolchain: "1.82.0"
override: true
default: true
components: rustfmt
Expand Down Expand Up @@ -74,7 +74,7 @@ jobs:

build-win:
name: Build - windows
runs-on: windows-2019
runs-on: windows-latest

steps:

Expand All @@ -84,7 +84,7 @@ jobs:
- name: Install toolchain
uses: actions-rs/toolchain@v1
with:
toolchain: "1.70.0"
toolchain: "1.82.0"
override: true
default: true
components: rustfmt
Expand Down Expand Up @@ -168,7 +168,7 @@ jobs:
needs:
- build
- build-win
runs-on: ubuntu-20.04
runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
Expand Down Expand Up @@ -208,7 +208,7 @@ jobs:

name: Docker push - ${{ matrix.job.name }}
needs: build
runs-on: ubuntu-22.04
runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
Expand Down Expand Up @@ -279,7 +279,7 @@ jobs:

name: Docker manifest
needs: docker
runs-on: ubuntu-22.04
runs-on: ubuntu-latest

steps:

Expand Down Expand Up @@ -330,7 +330,7 @@ jobs:

name: Docker push - ${{ matrix.job.name }}
needs: build
runs-on: ubuntu-22.04
runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
Expand Down Expand Up @@ -398,7 +398,7 @@ jobs:

name: Docker manifest
needs: docker
runs-on: ubuntu-22.04
runs-on: ubuntu-latest

steps:

Expand Down Expand Up @@ -448,7 +448,7 @@ jobs:

name: debian package - ${{ matrix.job.name }}
needs: build
runs-on: ubuntu-22.04
runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
Expand Down
12 changes: 6 additions & 6 deletions .github/workflows/ghcr.yml
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ jobs:
# Binary build
build:
name: Build - ${{ matrix.job.name }}
runs-on: ubuntu-24.04
runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
Expand All @@ -40,7 +40,7 @@ jobs:
- name: Install Rust toolchain
uses: dtolnay/rust-toolchain@v1
with:
toolchain: "1.70.0"
toolchain: "1.82.0"
targets: ${{ matrix.job.target }}
components: "rustfmt"

Expand Down Expand Up @@ -72,7 +72,7 @@ jobs:
create-s6-overlay-images:
name: Docker push - ${{ matrix.job.name }}
needs: build
runs-on: ubuntu-24.04
runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
Expand Down Expand Up @@ -143,7 +143,7 @@ jobs:
create-s6-overlay-images-manifest:
name: Manifest for s6-overlay images
needs: create-s6-overlay-images
runs-on: ubuntu-24.04
runs-on: ubuntu-latest

steps:
- name: Log in to GitHub Container Registry
Expand Down Expand Up @@ -203,7 +203,7 @@ jobs:
create-classic-images:
name: Docker push - ${{ matrix.job.name }}
needs: build
runs-on: ubuntu-24.04
runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
Expand Down Expand Up @@ -272,7 +272,7 @@ jobs:
create-classic-images-manifest:
name: Manifest for classic images
needs: create-classic-images
runs-on: ubuntu-24.04
runs-on: ubuntu-latest

steps:
- name: Log in to GitHub Container Registry
Expand Down
17 changes: 8 additions & 9 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
@@ -1,14 +1,12 @@
name: test

on:
push:
branches: [ "master" ]
paths-ignore:
- '**/README.md'
pull_request:
branches: [ "master" ]
paths-ignore:
- '**/README.md'
push:
workflow_dispatch:


jobs:
check:
Expand All @@ -20,7 +18,7 @@ jobs:
profile: minimal
toolchain: stable
override: true
- uses: Swatinem/rust-cache@v2
#- uses: Swatinem/rust-cache@v2
- uses: actions-rs/cargo@v1
with:
command: check
Expand All @@ -34,7 +32,7 @@ jobs:
profile: minimal
toolchain: stable
override: true
- uses: Swatinem/rust-cache@v2
#- uses: Swatinem/rust-cache@v2
- uses: actions-rs/cargo@v1
with:
command: test
Expand All @@ -50,7 +48,7 @@ jobs:
toolchain: stable
override: true
components: rustfmt
- uses: Swatinem/rust-cache@v2
#- uses: Swatinem/rust-cache@v2
- uses: actions-rs/cargo@v1
with:
command: build
Expand All @@ -60,6 +58,7 @@ jobs:
args: --all -- --check

clippy:
if: false
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
Expand All @@ -69,7 +68,7 @@ jobs:
toolchain: stable
override: true
components: clippy
- uses: Swatinem/rust-cache@v2
#- uses: Swatinem/rust-cache@v2
- uses: actions-rs/cargo@v1
with:
command: clippy
Expand Down
Loading