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

Is overtls considering supporting freebsd? #74

Open
chenxudong2020 opened this issue Jan 20, 2025 · 4 comments
Open

Is overtls considering supporting freebsd? #74

chenxudong2020 opened this issue Jan 20, 2025 · 4 comments

Comments

@chenxudong2020
Copy link
Contributor

There is a serv00 host, but it is a freebsd system. I use the linux package to report an error and request compilation to support freebsd running on serv00.

@ssrlive
Copy link
Member

ssrlive commented Jan 20, 2025

please write a CI script reference this sample, and add publish actions for it.

name: TestFreeBSD

on:
  [push, pull_request]

concurrency:
  group: ${{ github.workflow }}-${{ github.ref }}-${{ github.event_name }}
  cancel-in-progress: true

jobs:
  test:
    runs-on: ubuntu-latest
    strategy:
      matrix:
        toolchain: ["stable"] # ["nightly", "beta", "stable"] #
    steps:
      - uses: actions/checkout@v4
      - name: Test in FreeBSD
        id: test
        uses: vmactions/freebsd-vm@v1
        with:
          usesh: true
          sync: rsync
          copyback: false
          prepare: |
            pkg install -y curl pkgconf glib
            curl --proto '=https' --tlsv1.2 https://sh.rustup.rs -sSf > install.sh
            chmod +x install.sh
            ./install.sh -y --default-toolchain ${{ matrix.toolchain }}
          run: |
            . "$HOME/.cargo/env"
            set -ex

            # Add feature "nightly" if toolchain is nightly
            if [ "${{ matrix.toolchain }}" = "nightly" ]; then
                ARGS="$ARGS --features nightly"
            fi

            RUST_BACKTRACE=1 cargo +${{ matrix.toolchain }} fmt --all -- --check
            RUST_BACKTRACE=1 cargo +${{ matrix.toolchain }} clippy --all-features -- -D warnings
            RUST_BACKTRACE=1 cargo +${{ matrix.toolchain }} build --all-features

@chenxudong2020
Copy link
Contributor Author

chenxudong2020 commented Jan 20, 2025 via email

@ssrlive
Copy link
Member

ssrlive commented Jan 20, 2025

You can help write it.

rustup target list | grep freebsd
i686-unknown-freebsd
x86_64-unknown-freebsd

@chenxudong2020
Copy link
Contributor Author

chenxudong2020 commented Jan 20, 2025

I don't know the rust language, can you add a program to output the freebsd release version in github action. Thank you so much

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants