mirror of
https://github.com/rustic-rs/rustic.git
synced 2025-10-26 11:18:51 +00:00
ci(build): add platform-dependent settings and remove ci flag for extra features
Signed-off-by: simonsan <14062932+simonsan@users.noreply.github.com>
This commit is contained in:
parent
f774d8ba63
commit
65b8f68dd8
10
.github/workflows/cross-ci.yml
vendored
10
.github/workflows/cross-ci.yml
vendored
@ -35,61 +35,51 @@ jobs:
|
||||
target: x86_64-pc-windows-msvc
|
||||
architecture: x86_64
|
||||
use-cross: false
|
||||
extra-features: false
|
||||
- os: windows-latest
|
||||
os-name: windows
|
||||
target: x86_64-pc-windows-gnu
|
||||
architecture: x86_64
|
||||
use-cross: false
|
||||
extra-features: false
|
||||
- os: macos-13
|
||||
os-name: macos
|
||||
target: x86_64-apple-darwin
|
||||
architecture: x86_64
|
||||
use-cross: false
|
||||
extra-features: false
|
||||
- os: macos-latest
|
||||
os-name: macos
|
||||
target: aarch64-apple-darwin
|
||||
architecture: arm64
|
||||
use-cross: true
|
||||
extra-features: false
|
||||
- os: ubuntu-latest
|
||||
os-name: linux
|
||||
target: x86_64-unknown-linux-gnu
|
||||
architecture: x86_64
|
||||
use-cross: false
|
||||
extra-features: mount
|
||||
- os: ubuntu-latest
|
||||
os-name: linux
|
||||
target: x86_64-unknown-linux-musl
|
||||
architecture: x86_64
|
||||
use-cross: false
|
||||
extra-features: mount
|
||||
- os: ubuntu-latest
|
||||
os-name: linux
|
||||
target: aarch64-unknown-linux-gnu
|
||||
architecture: arm64
|
||||
use-cross: true
|
||||
extra-features: mount
|
||||
- os: ubuntu-latest
|
||||
os-name: linux
|
||||
target: i686-unknown-linux-gnu
|
||||
architecture: i686
|
||||
use-cross: true
|
||||
extra-features: mount
|
||||
- os: ubuntu-latest
|
||||
os-name: netbsd
|
||||
target: x86_64-unknown-netbsd
|
||||
architecture: x86_64
|
||||
use-cross: true
|
||||
extra-features: false
|
||||
- os: ubuntu-latest
|
||||
os-name: linux
|
||||
target: armv7-unknown-linux-gnueabihf
|
||||
architecture: armv7
|
||||
use-cross: true
|
||||
extra-features: false
|
||||
|
||||
steps:
|
||||
- name: Checkout repository
|
||||
|
||||
15
.github/workflows/nightly.yml
vendored
15
.github/workflows/nightly.yml
vendored
@ -31,59 +31,48 @@ jobs:
|
||||
architecture: x86_64
|
||||
binary-postfix: ".exe"
|
||||
use-cross: false
|
||||
extra-features: false
|
||||
- os: windows-latest
|
||||
os-name: windows
|
||||
target: x86_64-pc-windows-gnu
|
||||
architecture: x86_64
|
||||
binary-postfix: ".exe"
|
||||
use-cross: false
|
||||
extra-features: false
|
||||
- os: macos-13
|
||||
os-name: macos
|
||||
target: x86_64-apple-darwin
|
||||
architecture: x86_64
|
||||
binary-postfix: ""
|
||||
use-cross: false
|
||||
extra-features: false
|
||||
- os: macos-latest
|
||||
os-name: macos
|
||||
target: aarch64-apple-darwin
|
||||
architecture: arm64
|
||||
binary-postfix: ""
|
||||
use-cross: true
|
||||
extra-features: false
|
||||
- os: ubuntu-latest
|
||||
os-name: linux
|
||||
target: x86_64-unknown-linux-gnu
|
||||
architecture: x86_64
|
||||
binary-postfix: ""
|
||||
use-cross: false
|
||||
extra-features: mount
|
||||
- os: ubuntu-latest
|
||||
os-name: linux
|
||||
target: x86_64-unknown-linux-musl
|
||||
architecture: x86_64
|
||||
binary-postfix: ""
|
||||
use-cross: false
|
||||
# FIXME: `mount` pobably doesn't work with musl
|
||||
extra-features: false
|
||||
- os: ubuntu-latest
|
||||
os-name: linux
|
||||
target: aarch64-unknown-linux-gnu
|
||||
architecture: arm64
|
||||
binary-postfix: ""
|
||||
use-cross: true
|
||||
# FIXME: We need to install the dependencies in Cross.toml
|
||||
extra-features: false
|
||||
- os: ubuntu-latest
|
||||
os-name: linux
|
||||
target: i686-unknown-linux-gnu
|
||||
architecture: i686
|
||||
binary-postfix: ""
|
||||
use-cross: true
|
||||
# FIXME: We need to install the dependencies in Cross.toml
|
||||
extra-features: false
|
||||
# TODO!: This needs a fix, linking `execinfo` fails
|
||||
# - os: ubuntu-latest
|
||||
# os-name: netbsd
|
||||
@ -91,14 +80,12 @@ jobs:
|
||||
# architecture: x86_64
|
||||
# binary-postfix: ""
|
||||
# use-cross: true
|
||||
# extra-features: false
|
||||
- os: ubuntu-latest
|
||||
os-name: linux
|
||||
target: armv7-unknown-linux-gnueabihf
|
||||
architecture: armv7
|
||||
binary-postfix: ""
|
||||
use-cross: true
|
||||
extra-features: false
|
||||
|
||||
steps:
|
||||
- name: Checkout repository
|
||||
@ -125,8 +112,6 @@ jobs:
|
||||
sign-release: true
|
||||
hash-release: true
|
||||
use-project-version: true
|
||||
extra-cargo-build-args: --features release
|
||||
extra-features: ${{ matrix.job.extra-features }}
|
||||
|
||||
publish-nightly:
|
||||
if: ${{ github.repository_owner == 'rustic-rs' && github.ref == 'refs/heads/main' }}
|
||||
|
||||
12
.github/workflows/release-cd.yml
vendored
12
.github/workflows/release-cd.yml
vendored
@ -36,56 +36,48 @@ jobs:
|
||||
architecture: x86_64
|
||||
binary-postfix: ".exe"
|
||||
use-cross: false
|
||||
extra-features: false
|
||||
- os: windows-latest
|
||||
os-name: windows
|
||||
target: x86_64-pc-windows-gnu
|
||||
architecture: x86_64
|
||||
binary-postfix: ".exe"
|
||||
use-cross: false
|
||||
extra-features: false
|
||||
- os: macos-13
|
||||
os-name: macos
|
||||
target: x86_64-apple-darwin
|
||||
architecture: x86_64
|
||||
binary-postfix: ""
|
||||
use-cross: false
|
||||
extra-features: false
|
||||
- os: macos-latest
|
||||
os-name: macos
|
||||
target: aarch64-apple-darwin
|
||||
architecture: arm64
|
||||
binary-postfix: ""
|
||||
use-cross: true
|
||||
extra-features: false
|
||||
- os: ubuntu-latest
|
||||
os-name: linux
|
||||
target: x86_64-unknown-linux-gnu
|
||||
architecture: x86_64
|
||||
binary-postfix: ""
|
||||
use-cross: false
|
||||
extra-features: mount
|
||||
- os: ubuntu-latest
|
||||
os-name: linux
|
||||
target: x86_64-unknown-linux-musl
|
||||
architecture: x86_64
|
||||
binary-postfix: ""
|
||||
use-cross: false
|
||||
extra-features: mount
|
||||
- os: ubuntu-latest
|
||||
os-name: linux
|
||||
target: aarch64-unknown-linux-gnu
|
||||
architecture: arm64
|
||||
binary-postfix: ""
|
||||
use-cross: true
|
||||
extra-features: mount
|
||||
- os: ubuntu-latest
|
||||
os-name: linux
|
||||
target: i686-unknown-linux-gnu
|
||||
architecture: i686
|
||||
binary-postfix: ""
|
||||
use-cross: true
|
||||
extra-features: mount
|
||||
# TODO!: This needs a fix, linking `execinfo` fails
|
||||
# - os: ubuntu-latest
|
||||
# os-name: netbsd
|
||||
@ -93,14 +85,12 @@ jobs:
|
||||
# architecture: x86_64
|
||||
# binary-postfix: ""
|
||||
# use-cross: true
|
||||
# extra-features: false
|
||||
- os: ubuntu-latest
|
||||
os-name: linux
|
||||
target: armv7-unknown-linux-gnueabihf
|
||||
architecture: armv7
|
||||
binary-postfix: ""
|
||||
use-cross: true
|
||||
extra-features: false
|
||||
steps:
|
||||
- name: Checkout repository
|
||||
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4
|
||||
@ -126,8 +116,6 @@ jobs:
|
||||
hash-release: true
|
||||
use-project-version: true
|
||||
use-tag-version: true # IMPORTANT: this is being used to make sure the tag that is built is in the archive filename, so automation can download the correct version
|
||||
extra-cargo-build-args: --features release
|
||||
extra-features: ${{ matrix.job.extra-features }}
|
||||
|
||||
create-release:
|
||||
name: Creating release with artifacts
|
||||
|
||||
@ -125,6 +125,7 @@ toml = "0.8"
|
||||
|
||||
[target.'cfg(not(windows))'.dependencies]
|
||||
libc = "0.2.159"
|
||||
|
||||
# cargo-binstall support
|
||||
# https://github.com/cargo-bins/cargo-binstall/blob/HEAD/SUPPORT.md
|
||||
[package.metadata.binstall]
|
||||
|
||||
10
platform-settings.toml
Normal file
10
platform-settings.toml
Normal file
@ -0,0 +1,10 @@
|
||||
[platforms.defaults]
|
||||
release-features = [
|
||||
"release",
|
||||
]
|
||||
|
||||
# Check if 'build-dependencies.just' needs to be updated
|
||||
[platforms.x86_64-unknown-linux-gnu]
|
||||
additional-features = [
|
||||
"mount",
|
||||
]
|
||||
Loading…
Reference in New Issue
Block a user