-
Notifications
You must be signed in to change notification settings - Fork 1
51 lines (40 loc) · 1.07 KB
/
macos.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
50
51
name: MacOS
on:
push:
branches: [ main ]
pull_request:
workflow_dispatch:
jobs:
test:
runs-on: ${{ matrix.os }}
strategy:
fail-fast: false
matrix:
os: [ macos-13, macos-14 ]
steps:
- name: Select XCode
uses: maxim-lobanov/setup-xcode@v1
with:
xcode-version: 14.3.1
- name: Brew install
run: |
brew install bison flex binutils libffi double-conversion boost jemalloc fmt glog gnu-sed bash zlib ncurses
echo "$(brew --prefix bison)/bin" >> $GITHUB_PATH
- name: Install gem
run: gem install tebako
- name: Checkout sample
uses: actions/checkout@v4
- name: Package
run: tebako press -e app.rb -o sample.tebako -r sinatra
- name: Look around
run: ls -la
- name: Start packaged Sinatra application
run: ./sample.tebako &
env:
PORT: 4567
- name: Wait for Sinatra to start
run: sleep 10
- name: Place GET request
run: curl http://localhost:4567
- name: End Sinatra application
run: pkill -f sample.tebako