From 2ec408c6f1cc68efb646eac5ee437d15d4a9855e Mon Sep 17 00:00:00 2001 From: Jose Quintana <1700322+joseluisq@users.noreply.github.com> Date: Wed, 30 Aug 2023 01:25:28 +0200 Subject: [PATCH] feat: illumos x86_64 target (#258) - x86_64-unknown-illumos --- .github/workflows/devel.yml | 11 ++++++++--- .github/workflows/release.yml | 5 +++++ docs/content/download-and-install.tmpl.md | 2 ++ docs/content/migration.md | 4 ++-- docs/content/platforms-architectures.md | 5 +++++ 5 files changed, 22 insertions(+), 5 deletions(-) diff --git a/.github/workflows/devel.yml b/.github/workflows/devel.yml index 17b7334..39601a0 100644 --- a/.github/workflows/devel.yml +++ b/.github/workflows/devel.yml @@ -49,6 +49,7 @@ jobs: # - linux-android-armv7 - linux-android-arm64 - netbsd + - illumos - macos - macos-arm64 - windows-msvc @@ -117,6 +118,10 @@ jobs: os: ubuntu-22.04 rust: stable target: x86_64-unknown-netbsd + - build: illumos + os: ubuntu-22.04 + rust: stable + target: x86_64-unknown-illumos - build: macos os: macos-12 rust: stable @@ -182,7 +187,7 @@ jobs: - name: Skip tests shell: bash - if: ${{ contains(fromJSON('["macos-arm64", "linux-android-arm64", "linux-android-armv7", "netbsd"]'), matrix.build) }} + if: ${{ contains(fromJSON('["macos-arm64", "linux-android-arm64", "linux-android-armv7", "netbsd", "illumos"]'), matrix.build) }} run: | # Can't run tests: cross-compiling echo "SKIP_TESTS=--no-run" >> $GITHUB_ENV @@ -201,8 +206,8 @@ jobs: shell: bash run: | case "${{ matrix.build }}" in - *-arm*|*bsd*) - echo "arm(64) or BSD are unable to execute on CI!" + *-arm*|*bsd*|*illumos*) + echo "arm(64)s or BSDs are unable to execute on CI for now!" ;; *) if [[ "${{ matrix.os }}" == "windows-2022" ]]; then diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index a94d259..6b90751 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -61,6 +61,7 @@ jobs: # - linux-android-armv7 - linux-android-arm64 - netbsd + - illumos - macos - macos-arm64 - windows-msvc @@ -116,6 +117,10 @@ jobs: os: ubuntu-22.04 rust: stable target: x86_64-unknown-netbsd + - build: illumos + os: ubuntu-22.04 + rust: stable + target: x86_64-unknown-illumos - build: macos os: macos-12 rust: stable diff --git a/docs/content/download-and-install.tmpl.md b/docs/content/download-and-install.tmpl.md index ad544af..1e3c8f2 100644 --- a/docs/content/download-and-install.tmpl.md +++ b/docs/content/download-and-install.tmpl.md @@ -90,6 +90,8 @@ Pre-compiled binaries grouped by CPU architectures. **SHA256SUM:** `{{x86_64-unknown-linux-musl.tar.gz}}` - [static-web-server-{{RELEASE_VERSION}}-x86_64-unknown-netbsd.tar.gz](https://github.com/static-web-server/static-web-server/releases/download/{{RELEASE_VERSION}}/static-web-server-{{RELEASE_VERSION}}-x86_64-unknown-netbsd.tar.gz)
**SHA256SUM:** `{{x86_64-unknown-netbsd.tar.gz}}` +- [static-web-server-{{RELEASE_VERSION}}-x86_64-unknown-illumos.tar.gz](https://github.com/static-web-server/static-web-server/releases/download/{{RELEASE_VERSION}}/static-web-server-{{RELEASE_VERSION}}-x86_64-unknown-illumos.tar.gz)
+**SHA256SUM:** `{{x86_64-unknown-illumos.tar.gz}}` ### ARM64 diff --git a/docs/content/migration.md b/docs/content/migration.md index 22c5629..cefe395 100644 --- a/docs/content/migration.md +++ b/docs/content/migration.md @@ -1,6 +1,6 @@ # Migrating from v1 to v2 -The `v2` introduces notable changes including new features, performance improvements and new target support like ARM64 and OSes like FreeBSD, NetBSD or Android. +The `v2` introduces notable changes including new features, performance improvements and new target support like ARM64 and OSes like FreeBSD, NetBSD, Illumos or Android. This version `v2` was re-written almost from scratch on top of [Hyper](https://github.com/hyperium/hyper) and [Tokio](https://github.com/tokio-rs/tokio) runtime which gives us the [Rust asynchronous ability](https://rust-lang.github.io/async-book/01_getting_started/02_why_async.html) by default and the latest HTTP/1 - HTTP/2 implementation improvements. However, it still tries to keep the same principles of its `v1`: lightness and easy-to-use. Therefore migration should not be a big deal. @@ -12,7 +12,7 @@ This major `v2` has a few breaking changes. However, migration should not repres !!! tip "Tip" It is always worth recommending that you test a major server version upgrade like this first with your application(s) in a development environment or similar. -Please have in mind the following changes in `v2`: +Please keep in mind the following changes in `v2`: - The server now supports only a root directory path (via `--root` or its equivalent env) so an assets path option is no longer required. - Cache-control headers are arbitrarily applied to assets. See [control headers examples](./features/cache-control-headers.md) for more details. diff --git a/docs/content/platforms-architectures.md b/docs/content/platforms-architectures.md index a594ba1..1b67a76 100644 --- a/docs/content/platforms-architectures.md +++ b/docs/content/platforms-architectures.md @@ -57,3 +57,8 @@ Currently, only the following platforms/architectures are supported. #### x86_64 - `x86_64-unknown-netbsd` + +## Illumos + +#### x86_64 + - `x86_64-unknown-illumos` -- libgit2 1.7.2