-
Notifications
You must be signed in to change notification settings - Fork 8
45 lines (43 loc) · 1.24 KB
/
extensions.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
name: Extensions
on:
push:
paths:
- 'extensions/**'
- '.github/workflows/extensions.yml'
branches:
- '*'
tags:
- 'v*.*.*'
workflow_dispatch:
jobs:
build:
strategy:
fail-fast: false
matrix:
include:
- toolchain: stable-x86_64-unknown-linux-gnu
os: ubuntu-latest
from: libapollo_client.so
to: _x64.so
- toolchain: stable-x86_64-pc-windows-msvc
os: windows-latest
from: apollo_client.dll
to: _x64.dll
- toolchain: stable-i686-pc-windows-msvc
os: windows-latest
from: apollo_client.dll
to: .dll
runs-on: ${{ matrix.os }}
steps:
- name: Checkout the source code
uses: actions/checkout@v4
- name: Install Rust Toolchain
run: rustup toolchain install ${{ matrix.toolchain }}
- name: Build
run: cd extensions && cargo +${{ matrix.toolchain }} build --release
- name: Move
run: mkdir release && cp extensions/target/release/${{ matrix.from }} release/tac_apollo_client${{ matrix.to }}
- uses: actions/upload-artifact@v4
with:
name: extensions-${{ matrix.toolchain }}-${{ github.sha }}
path: release