Skip to content

Fix handling of .. paths in symlinks. #1700

Fix handling of .. paths in symlinks.

Fix handling of .. paths in symlinks. #1700

Workflow file for this run

name: CI
on:
push:
branches:
- main
pull_request:
jobs:
test:
name: Test
runs-on: ${{ matrix.os }}
strategy:
matrix:
build: [windows-latest]
include:
- build: windows-latest
os: windows-latest
rust: stable
steps:
- uses: actions/checkout@v3
with:
submodules: true
- uses: ./.github/actions/install-rust
with:
toolchain: ${{ matrix.rust }}
- name: Install cross-compilation tools
run: |
set -ex
sudo apt-get update
sudo apt-get install -y ${{ matrix.gcc_package }} ninja-build
# Download and build qemu from source since the most recent release is
# way faster at arm emulation than the current version github actions'
# ubuntu image uses. Disable as much as we can to get it to build
# quickly.
curl https://download.qemu.org/qemu-6.1.0.tar.xz | tar xJf -
cd qemu-6.1.0
./configure --target-list=${{ matrix.qemu_target }} --prefix=$HOME/qemu --disable-tools --disable-slirp --disable-fdt --disable-capstone --disable-docs
make -j$(nproc) install
# Configure Cargo for cross compilation and tell it how it can run
# cross executables
upcase=$(echo ${{ matrix.target }} | awk '{ print toupper($0) }' | sed 's/-/_/g')
echo CARGO_TARGET_${upcase}_RUNNER=$HOME/qemu/bin/${{ matrix.qemu }} >> $GITHUB_ENV
echo CARGO_TARGET_${upcase}_LINKER=${{ matrix.gcc }} >> $GITHUB_ENV
if: matrix.qemu != '' && matrix.os == 'ubuntu-latest'
- name: Native testing
run: cargo test --features fs_utf8 --workspace
env:
RUST_BACKTRACE: 1
if: matrix.target == ''
- name: Cross testing
run: |
rustup target add ${{ matrix.target }}
cargo test --features fs_utf8 --workspace --target=${{ matrix.target }}
env:
RUST_BACKTRACE: 1
if: matrix.target != ''