-
Notifications
You must be signed in to change notification settings - Fork 7
48 lines (44 loc) · 1.49 KB
/
c-cpp.yml
File metadata and controls
48 lines (44 loc) · 1.49 KB
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
46
47
48
name: C/C++ CI
on:
workflow_dispatch:
jobs:
build:
runs-on: ${{ matrix.os }}
strategy:
matrix:
os: [ubuntu-latest, windows-latest, macOS-latest]
platform: [x32, x64]
steps:
- uses: actions/checkout@v2
- name: Enable Developer Command Prompt
uses: ilammy/msvc-dev-cmd@v1.3.0
if: matrix.os == 'windows-latest'
- name: Compile compression library
shell: cmd
run: |
cd compression
compile.bat
mv compressionlib-nocb.dll ..\\compressionlib-nocb-${{ matrix.os }}-${{ matrix.platform }}.dll
if: matrix.os == 'windows-latest'
- name: Compile compression library
run: |
cd compression
chmod +x compile.sh
./compile.sh
mv compressionlib-nocb.so ../compressionlib-nocb-${{ matrix.os }}-${{ matrix.platform }}.so
shell: bash
if: matrix.os == 'ubuntu-latest' || matrix.os == 'macOS-latest'
- name: Archive production artifacts
uses: actions/upload-artifact@v2
if: matrix.os == 'windows-latest'
with:
name: compressionlib-nocb-binaries
path: |
compressionlib-nocb-${{ matrix.os }}-${{ matrix.platform }}.dll
- name: Archive production artifacts
uses: actions/upload-artifact@v2
if: matrix.os == 'ubuntu-latest' || matrix.os == 'macOS-latest'
with:
name: compressionlib-nocb-binaries
path: |
compressionlib-nocb-${{ matrix.os }}-${{ matrix.platform }}.so