-
Notifications
You must be signed in to change notification settings - Fork 4
49 lines (44 loc) · 1.51 KB
/
osx.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
46
47
48
49
name: OSX build
on:
push:
branches: [ master ]
pull_request:
branches: [ master ]
jobs:
build:
runs-on: macos-latest
steps:
- uses: actions/checkout@v4
- name: tag version date
run: /bin/sh ./tag.sh
- name: Install packages
run: brew install gcc@12 autoconf automake libtool binutils ;
- name: autoreconf
run: autoreconf -vfi
- name: Prepare install folder
run: mkdir usr && mkdir usr/local
- name: configure
run: ./configure --prefix=$PWD/usr/local/ AR='gcc-ar-12' NM='gcc-nm-12' RANLIB='gcc-ranlib-12' CXX='g++-12' CC='gcc-12' || cat config.log
- name: make lib
run: cd ddd ; make -j ; cd ..
- name: make demo
run: make -j
- name: make install
run: make install
- name: prepare artefact
run: rm usr/local/lib/libDDD_d* ; tar cvzf osx.tgz usr/ ; mv osx.tgz website/
- name: Deploy to GitHub Pages
uses: JamesIves/github-pages-deploy-action@v4
with:
branch: osx # The branch the action should deploy to.
folder: website/ # The folder the action should deploy.
clean: true # Automatically remove deleted files from the deploy branch
single-commit: true
- name: Trigger libITS
uses: mvasigh/dispatch-action@main
with:
# You should create a personal access token and store it in your repository
token: ${{ secrets.NOTIF_PAT }}
repo: libITS
owner: lip6
event_type: ${{ runner.os }}