add ils to airbases #98
This file contains 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: CI | |
on: push | |
permissions: | |
contents: write | |
jobs: | |
build-proj: | |
name: Build Installer | |
runs-on: windows-latest | |
steps: | |
- uses: actions/checkout@v3 | |
- uses: actions/cache@v3 | |
with: | |
path: | | |
~/.cargo/bin/ | |
~/.cargo/registry/index/ | |
~/.cargo/registry/cache/ | |
~/.cargo/git/db/ | |
target/ | |
vcpkg/installed/ | |
key: ${{ runner.os }}-cargo-${{ hashFiles('**/Cargo.lock') }} | |
- name: Run vckpg install proj | |
uses: lukka/run-vcpkg@v4 | |
with: | |
vcpkgArguments: "proj:x64-windows" | |
vcpkgDirectory: "${{ github.workspace }}/vcpkg" | |
vcpkgGitCommitId: "0ccb3d11406922bef1dcc29002f68f633a321f19" | |
- name: Choco install pkgconfiglite | |
uses: crazy-max/ghaction-chocolatey@v2 | |
with: | |
args: install pkgconfiglite --allowemptychecksum | |
- uses: actions-rs/toolchain@v1 | |
with: | |
toolchain: stable | |
- name: Test pkgconfiglite and build | |
shell: bash | |
run: | | |
export PKG_CONFIG_PATH="$VCPKG_ROOT/installed/x64-windows/lib/pkgconfig" | |
pkg-config --libs --cflags proj | |
cargo build --release | |
# next: package | |
- name: Install Wix | |
uses: actions/checkout@v2 | |
with: | |
repository: fbarresi/wix | |
path: wix | |
- name: install cargo-wix | |
shell: bash | |
run: | | |
cargo install cargo-wix --force | |
- name: build MSI | |
shell: bash | |
run: | | |
export PKG_CONFIG_PATH="$VCPKG_ROOT/installed/x64-windows/lib/pkgconfig" | |
export PATH=$PATH:$(pwd)/wix/tools/ | |
cp -Lvr vcpkg/installed/x64-windows/bin/* target/release | |
cargo wix --package=ui --nocapture --name=dce_builder | |
# gather up artifacts.. | |
- uses: actions/upload-artifact@v3 | |
with: | |
name: installer | |
path: target/wix/dce_builder*.msi | |
- name: release build | |
shell: bash | |
if: startsWith(github.ref, 'refs/tags/') | |
run: | | |
export PKG_CONFIG_PATH="$VCPKG_ROOT/installed/x64-windows/lib/pkgconfig" | |
export PATH=$PATH:$(pwd)/wix/tools/ | |
cargo wix --package=ui --nocapture --name=dce_builder --install-version=${{ github.ref_name }} | |
- name: Release | |
uses: softprops/action-gh-release@v1 | |
if: startsWith(github.ref, 'refs/tags/') | |
with: | |
files: target/wix/dce_builder-${{ github.ref_name }}-x86_64.msi |