updates documentation #316
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| name: Elixir CI - FreeBSD | |
| on: push | |
| jobs: | |
| freebsd: | |
| runs-on: ubuntu-latest | |
| name: FreeBSD / Elixir | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - uses: erlef/setup-beam@v1 | |
| name: Setup Erlang | |
| with: | |
| otp-version: '27.3' | |
| elixir-version: '1.17.3' | |
| - uses: actions/cache@v3 | |
| id: deps-cache | |
| with: | |
| path: deps | |
| key: mix-${{ hashFiles('mix.lock') }} | |
| - name: get deps | |
| run: mix deps.get | |
| - uses: actions/cache@v3 | |
| id: zig-cache | |
| with: | |
| path: zig | |
| key: zig-freebsd | |
| - name: get zig | |
| run: | | |
| if [ ! -d zig ]; then | |
| git clone -b 0.15.1 https://github.com/ziglang/zig.git | |
| fi | |
| - name: Test in FreeBSD | |
| id: test | |
| uses: vmactions/freebsd-vm@v1 | |
| with: | |
| mem: 8192 | |
| usesh: true | |
| prepare: | | |
| pkg install -y erlang-runtime28 | |
| pkg install -y elixir | |
| pkg install -y llvm20 | |
| pkg install -y ca_root_nss | |
| pkg install -y cmake zstd libxml2 lzma ninja | |
| ldconfig /usr/local/lib | |
| run: | | |
| cd zig | |
| mkdir -p build | |
| cd build | |
| cmake .. -G Ninja -DZIG_STATIC_LLVM=ON -DCMAKE_PREFIX_PATH="/usr/local/llvm20;/usr/local;/usr/local/lib" -DCMAKE_EXE_LINKER_FLAGS="-L/usr/local/lib" -DCMAKE_BUILD_TYPE=ReleaseSafe | |
| ninja -C . | |
| export ZIG_EXECUTABLE_PATH="$(pwd)/stage3/bin/zig" | |
| export PATH="/usr/local/lib/erlang27/bin:$PATH" | |
| export SSL_CACERTFILE=/usr/local/etc/ssl/cert.pem | |
| cd ../.. | |
| mix local.hex --force | |
| mix test --exclude no_ci --exclude skip_freebsd |