Skip to content

Commit

Permalink
wip
Browse files Browse the repository at this point in the history
  • Loading branch information
nyurik committed Sep 25, 2023
1 parent 70bcd3d commit 67cf76f
Showing 1 changed file with 18 additions and 13 deletions.
31 changes: 18 additions & 13 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ jobs:
name: Build ${{ matrix.target }}
runs-on: ${{ matrix.os }}
strategy:
fail-fast: true
# fail-fast: true
matrix:
include:
- target: aarch64-apple-darwin
Expand Down Expand Up @@ -69,23 +69,28 @@ jobs:
run: |
echo "VCPKG_ROOT=$env:VCPKG_INSTALLATION_ROOT" | Out-File -FilePath $env:GITHUB_ENV -Append
vcpkg install openssl:x64-windows-static-md
- name: Install Native Dependencies (Linux)
if: matrix.target == 'aarch64-unknown-linux-gnu'
run: |
sudo apt-get install -y gcc-aarch64-linux-gnu
- name: Run build (native)
- name: Run build (${{ matrix.target }})
if: matrix.cross != 'true'
run: |
cargo build --release --target ${{ matrix.target }} --features=ssl --package martin
cargo build --release --target ${{ matrix.target }} --features=cli --package martin-mbtiles
- name: Run build (cross-platform, vendored-openssl)
# compile without debug symbols because stripping them with `strip` does not work cross-platform
if: matrix.cross == 'true'
- name: Run build (${{ matrix.target }})
if: matrix.target == 'aarch64-apple-darwin'
run: |
rustup target add "${{ matrix.target }}"
# compile without debug symbols because stripping them with `strip` does not work cross-platform
export RUSTFLAGS='-C link-arg=-s'
cargo build --release --target ${{ matrix.target }} --features=vendored-openssl --package martin
cargo build --release --target ${{ matrix.target }} --features=cli --package martin-mbtiles
cargo build --release --target ${{ matrix.target }} --no-default-features --features=rustls,cli --package martin-mbtiles
- name: Run build (${{ matrix.target }})
if: matrix.target == 'aarch64-unknown-linux-gnu'
run: |
sudo apt-get install -y gcc-aarch64-linux-gnu binutils-aarch64-linux-gnu
rustup target add "${{ matrix.target }}"
# compile without debug symbols because stripping them with `strip` does not work cross-platform
export RUSTFLAGS='-C link-arg=-s -C linker=aarch64-linux-gnu-gcc'
cargo build --release --target ${{ matrix.target }} --features=vendored-openssl --package martin
cargo build --release --target ${{ matrix.target }} --no-default-features --features=rustls,cli --package martin-mbtiles
- name: Save build artifacts
run: |
mkdir -p target_releases
Expand All @@ -110,7 +115,7 @@ jobs:
runs-on: ${{ matrix.os }}
needs: [ build ]
strategy:
fail-fast: true
# fail-fast: true
matrix:
include:
- target: x86_64-apple-darwin
Expand Down Expand Up @@ -195,7 +200,7 @@ jobs:
runs-on: ubuntu-latest
needs: [ build ]
strategy:
fail-fast: true
# fail-fast: true
matrix:
include:
# These must match the versions of postgres used in the docker-compose.yml
Expand Down Expand Up @@ -289,7 +294,7 @@ jobs:
runs-on: ${{ matrix.os }}
needs: [ test, test-legacy ]
strategy:
fail-fast: true
# fail-fast: true
matrix:
include:
- target: aarch64-apple-darwin
Expand Down

0 comments on commit 67cf76f

Please sign in to comment.