Skip to content

Commit e2e8a5a

Browse files
committed
CI workflow tweaks
1 parent db3a85e commit e2e8a5a

File tree

1 file changed

+15
-7
lines changed

1 file changed

+15
-7
lines changed

.github/workflows/test.yml .github/workflows/build.yml

+15-7
Original file line numberDiff line numberDiff line change
@@ -1,27 +1,24 @@
1-
name: Test
1+
name: Build CSPICE Toolkit
22

33
on:
44
push:
55
branches:
66
- main
77
paths:
88
- 'cspice-sharedlib.sh'
9-
- '.github/workflows/test.yml'
9+
- '.github/workflows/build.yml'
1010

1111
pull_request:
1212
paths:
1313
- 'cspice-sharedlib.sh'
14-
- '.github/workflows/test.yml'
14+
- '.github/workflows/build.yml'
1515

1616
jobs:
1717

1818
build:
19-
name: Test build
19+
name: Test build and install
2020

2121
runs-on: ubuntu-latest
22-
env:
23-
CC: gcc
24-
CFLAGS: -Os -Wall -Wextra -Werror -std=c99
2522
steps:
2623
- uses: actions/checkout@v4
2724

@@ -44,6 +41,17 @@ jobs:
4441

4542
- name: List executables
4643
run: ls -l cspice/exe/
44+
45+
- name: Install libraries in /usr/lib
46+
run: sudo cp cspice/lib/* /usr/lib/
47+
48+
- name: Install binaries in /usr/bin
49+
run: sudo cp cspice/exe/* /usr/bin/
50+
51+
- name: Install headers in /usr/include/cspice
52+
run: |
53+
sudo mkdir /usr/include/cspice
54+
sudo cp cspice/include/* /usr/include/cspice/
4755
4856
4957

0 commit comments

Comments
 (0)