Skip to content

Commit

Permalink
[CI] matrix-os build
Browse files Browse the repository at this point in the history
  • Loading branch information
fanvanzh committed May 21, 2024
1 parent 14c5662 commit 3109393
Show file tree
Hide file tree
Showing 914 changed files with 39 additions and 158,921 deletions.
2 changes: 2 additions & 0 deletions .devcontainer/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,8 @@ RUN apt-get update && apt-get install -y \
libc6-dev \
m4 \
gcc \
libgdal-dev \
libopenscenegraph-dev \
&& rm -rf /var/lib/apt/lists/*

# 设置工作目录
Expand Down
2 changes: 1 addition & 1 deletion .devcontainer/devcontainer.json
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,6 @@
"terminal.integrated.shell.linux": "/bin/bash"
},
"extensions": [
"rust-lang.rust"
"rust-lang.rust-analyzer"
]
}
36 changes: 36 additions & 0 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,36 @@
name: Build

on: [push, pull_request]
jobs:
build-and-test:
runs-on: ${{ matrix.os }}
strategy:
matrix:
os: [ubuntu-latest, windows-latest]

steps:
- uses: actions/checkout@v2

- name: Install dependencies on Ubuntu
if: runner.os == 'Linux'
run: |
git clone https://github.com/Microsoft/vcpkg.git
./vcpkg/bootstrap-vcpkg.sh
./vcpkg/vcpkg integrate install
./vcpkg/vcpkg install osg
./vcpkg/vcpkg install gdal
- name: Install dependencies on Windows
if: runner.os == 'Windows'
run: |
git clone https://github.com/Microsoft/vcpkg.git
./vcpkg/bootstrap-vcpkg.bat
./vcpkg/vcpkg integrate install
./vcpkg/vcpkg install osg
./vcpkg/vcpkg install gdal
- name: Build
run: cargo build --verbose --release

- name: Test
run: cargo test --verbose
25 changes: 0 additions & 25 deletions .github/workflows/rust.yml

This file was deleted.

Binary file removed bin/gdal201.dll
Binary file not shown.
138 changes: 0 additions & 138 deletions bin/gdal_data/GDALLogoBW.svg

This file was deleted.

Loading

0 comments on commit 3109393

Please sign in to comment.