mirror of
https://github.com/maplibre/maplibre-rs.git
synced 2025-12-08 19:05:57 +00:00
Create a Windows executable artifact in GHA (#101)
* Create a windows demo github action * Move windows demo build workflow
This commit is contained in:
parent
916af61abc
commit
5daad34ba4
29
.github/actions/demo/windows/action.yml
vendored
Normal file
29
.github/actions/demo/windows/action.yml
vendored
Normal file
@ -0,0 +1,29 @@
|
||||
name: windows-demo
|
||||
description: Build windows-demo for windows
|
||||
|
||||
runs:
|
||||
using: "composite"
|
||||
steps:
|
||||
- uses: extractions/setup-just@v1
|
||||
- name: Install toolchain
|
||||
shell: bash
|
||||
run: just default-toolchain
|
||||
- uses: Swatinem/rust-cache@v1
|
||||
- uses: ilammy/msvc-dev-cmd@v1 # Provide access to lib.exe
|
||||
- name: Install SQLite
|
||||
shell: powershell
|
||||
run: choco install sqlite -y --params "/NoTools"
|
||||
- name: Build SQLite lib
|
||||
shell: powershell
|
||||
run: |
|
||||
cd "C:\ProgramData\chocolatey\lib\SQLite\tools"
|
||||
lib /DEF:sqlite3.def /OUT:sqlite3.lib /MACHINE:x64
|
||||
echo "SQLITE3_LIB_DIR=C:\ProgramData\chocolatey\lib\SQLite\tools" >> $env:GITHUB_ENV
|
||||
- name: Build
|
||||
shell: bash
|
||||
run: cargo build -p maplibre-demo --release --target x86_64-pc-windows-msvc
|
||||
- uses: actions/upload-artifact@v3
|
||||
with:
|
||||
name: maplibre-x86_64-windows-demo
|
||||
path: target/x86_64-pc-windows-msvc/release/maplibre-demo.exe
|
||||
if-no-files-found: error
|
||||
8
.github/workflows/on_main_push.yml
vendored
8
.github/workflows/on_main_push.yml
vendored
@ -69,10 +69,16 @@ jobs:
|
||||
- uses: ./.github/actions/apple
|
||||
with:
|
||||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
||||
build-demo-windows:
|
||||
runs-on: windows-2022
|
||||
steps:
|
||||
- uses: actions/checkout@v2
|
||||
- uses: ./.github/actions/demo/windows
|
||||
build-demo-macos:
|
||||
runs-on: macos-11
|
||||
steps:
|
||||
- uses: actions/checkout@v2
|
||||
- uses: ./.github/actions/demo/macos
|
||||
with:
|
||||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
||||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
||||
|
||||
|
||||
7
.github/workflows/on_pull_request.yml
vendored
7
.github/workflows/on_pull_request.yml
vendored
@ -49,10 +49,15 @@ jobs:
|
||||
- uses: ./.github/actions/apple
|
||||
with:
|
||||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
||||
build-demo-windows:
|
||||
runs-on: windows-2022
|
||||
steps:
|
||||
- uses: actions/checkout@v2
|
||||
- uses: ./.github/actions/demo/windows
|
||||
build-demo-macos:
|
||||
runs-on: macos-11
|
||||
steps:
|
||||
- uses: actions/checkout@v2
|
||||
- uses: ./.github/actions/demo/macos
|
||||
with:
|
||||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
||||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user