Skip to content

Commit

Permalink
build: select features (#634)
Browse files Browse the repository at this point in the history
  • Loading branch information
ibigbug authored Oct 26, 2024
1 parent 812ee24 commit 45999e5
Showing 1 changed file with 22 additions and 22 deletions.
44 changes: 22 additions & 22 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -45,63 +45,63 @@ jobs:
- os: ubuntu-latest
target: x86_64-unknown-linux-gnu
cross: true
extra-args: "--all-features"
extra-args: -F "shadowsocks, tuic, onion"
- os: ubuntu-latest
target: i686-unknown-linux-gnu
cross: true
extra-args: "--all-features"
extra-args: -F "shadowsocks, tuic, onion"
# Linux x86 musl
- os: ubuntu-latest
target: x86_64-unknown-linux-musl
cross: true
extra-args: "--all-features"
extra-args: -F "shadowsocks, tuic, onion"
# Linux x86 gnu static-crt
- os: ubuntu-latest
target: x86_64-unknown-linux-gnu
release-name: x86_64-unknown-linux-gnu-static-crt
cross: true
extra-args: "--all-features"
extra-args: -F "shadowsocks, tuic, onion"
rustflags: "-Ctarget-feature=+crt-static --cfg tokio_unstable"
- os: ubuntu-latest
target: i686-unknown-linux-gnu
release-name: i686-unknown-linux-gnu-static-crt
cross: true
extra-args: "--all-features"
extra-args: -F "shadowsocks, tuic, onion"
rustflags: "-Ctarget-feature=+crt-static --cfg tokio_unstable"
# Linux arm gnu
- os: ubuntu-latest
target: aarch64-unknown-linux-gnu
cross: true
extra-args: "--all-features"
extra-args: -F "shadowsocks, tuic, onion"
- os: ubuntu-latest
target: armv7-unknown-linux-gnueabi
cross: true
extra-args: "--all-features"
extra-args: -F "shadowsocks, tuic, onion"
- os: ubuntu-latest
target: armv7-unknown-linux-gnueabihf
cross: true
extra-args: "--all-features"
extra-args: -F "shadowsocks, tuic, onion"
# Linux arm musl
- os: ubuntu-latest
target: aarch64-unknown-linux-musl
cross: true
extra-args: "--all-features"
extra-args: -F "shadowsocks, tuic, onion"
- os: ubuntu-latest
target: armv7-unknown-linux-musleabihf
cross: true
extra-args: "--all-features"
extra-args: -F "shadowsocks, tuic, onion"
# Linux arm gnu static-crt
- os: ubuntu-latest
target: aarch64-unknown-linux-gnu
release-name: aarch64-unknown-linux-gnu-static-crt
cross: true
extra-args: "--all-features"
extra-args: -F "shadowsocks, tuic, onion"
rustflags: "-Ctarget-feature=+crt-static --cfg tokio_unstable"
- os: ubuntu-latest
target: armv7-unknown-linux-gnueabi
release-name: armv7-unknown-linux-gnueabi-static-crt
cross: true
extra-args: "--all-features"
extra-args: -F "shadowsocks, tuic, onion"
rustflags: "-Ctarget-feature=+crt-static --cfg tokio_unstable"
# Linux RISC-V gnu
# - os: ubuntu-latest
Expand All @@ -113,31 +113,31 @@ jobs:
target: x86_64-pc-windows-msvc
cross: false
postfix: ".exe"
extra-args: "--all-features"
extra-args: -F "shadowsocks, tuic, onion"
- os: windows-latest
target: i686-pc-windows-msvc
cross: false
postfix: ".exe"
extra-args: "--all-features"
extra-args: -F "shadowsocks, tuic, onion"
- os: windows-latest
target: aarch64-pc-windows-msvc
cross: false
postfix: ".exe"
extra-args: --features "shadowsocks tuic"
extra-args: -F "shadowsocks,tuic"
# Windows static-crt
- os: windows-latest
target: x86_64-pc-windows-msvc
release-name: x86_64-pc-windows-msvc-static-crt
cross: false
postfix: ".exe"
extra-args: "--all-features"
extra-args: -F "shadowsocks, tuic, onion"
rustflags: "-Ctarget-feature=+crt-static --cfg tokio_unstable"
- os: windows-latest
target: i686-pc-windows-msvc
release-name: i686-pc-windows-msvc-static-crt
cross: false
postfix: ".exe"
extra-args: "--all-features"
extra-args: -F "shadowsocks, tuic, onion"
rustflags: >-
-Ctarget-feature=+crt-static
-Clink-args=/NODEFAULTLIB:libvcruntimed.lib
Expand All @@ -158,29 +158,29 @@ jobs:
release-name: aarch64-pc-windows-msvc-static-crt
cross: false
postfix: ".exe"
extra-args: --features "shadowsocks tuic"
extra-args: -F "shadowsocks, tuic"
rustflags: "-Ctarget-feature=+crt-static --cfg tokio_unstable"
# MacOSX
- os: macos-14
target: x86_64-apple-darwin
cross: false
extra-args: "--all-features"
extra-args: -F "shadowsocks, tuic, onion"
- os: macos-14
target: aarch64-apple-darwin
cross: false
extra-args: "--all-features"
extra-args: -F "shadowsocks, tuic, onion"
# MacOSX static-crt
- os: macos-14
target: x86_64-apple-darwin
release-name: x86_64-apple-darwin-static-crt
cross: false
extra-args: "--all-features"
extra-args: -F "shadowsocks, tuic, onion"
rustflags: "-Ctarget-feature=+crt-static --cfg tokio_unstable"
- os: macos-14
target: aarch64-apple-darwin
release-name: aarch64-apple-darwin-static-crt
cross: false
extra-args: "--all-features"
extra-args: -F "shadowsocks, tuic, onion"
rustflags: "-Ctarget-feature=+crt-static --cfg tokio_unstable"
# Linux mips: tier-3, pity
# Windows gnu: tokio dont work
Expand Down

0 comments on commit 45999e5

Please sign in to comment.