From 6b7e184389d97459ce93f8ce2e4a25354832da13 Mon Sep 17 00:00:00 2001 From: Bo Jeanes Date: Sun, 11 Sep 2022 17:23:08 +1000 Subject: [PATCH] Fix Windows artifact upload --- .github/workflows/ci.yml | 38 ++++++++++++++++++++------------------ 1 file changed, 20 insertions(+), 18 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 4884f82..d2cefb8 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -10,11 +10,6 @@ env: CARGO_TERM_COLOR: always PKG_CONFIG_ALLOW_CROSS: 1 -defaults: - run: - # necessary for windows - shell: bash - jobs: tests: runs-on: ubuntu-latest @@ -149,9 +144,6 @@ jobs: - TARGET: x86_64-pc-windows-msvc OS: windows-latest runs-on: ${{ matrix.OS }} - env: - TARGET: ${{ matrix.TARGET }} - OS: ${{ matrix.OS }} steps: - uses: actions/checkout@v2 - name: Cargo cache @@ -197,11 +189,12 @@ jobs: echo "PKG_CONFIG=${GCC_TARGET}-pkg-config" >> $GITHUB_ENV echo "BINDGEN_EXTRA_CLANG_ARGS=\"-L/usr/lib/${GCC_TARGET} -L/lib/${GCC_TARGET}\"" >> $GITHUB_ENV - name: Install dependencies - if: matrix.DEPS + if: contains(matrix.TARGET, '-linux-') && matrix.DEPS run: | sudo apt-get update sudo apt-get install -qqy ${{ matrix.DEPS }} - name: Configure linker + if: contains(matrix.TARGET, '-linux-') run: | # some additional configuration for cross-compilation on linux cat >>~/.cargo/config <