-
Notifications
You must be signed in to change notification settings - Fork 1
81 lines (63 loc) · 2.48 KB
/
tutorial.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
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
name: Tutorial
on:
push:
branches: [ main ]
pull_request:
workflow_dispatch:
concurrency:
group: '${{ github.workflow }}-${{ github.job }}-${{ github.head_ref || github.ref_name }}'
cancel-in-progress: true
jobs:
lessons-1-2:
runs-on: macos-latest
steps:
- name: Brew install
run: |
pushd $(mktemp -d)
curl https://raw.githubusercontent.com/tamatebako/tebako/refs/heads/main/Brewfile > Brewfile
brew bundle -f
popd
echo "$(brew --prefix bison)/bin" >> $GITHUB_PATH
- name: Install gem
run: gem install tebako
- name: Checkout
uses: actions/checkout@v4
- name: Package 1_hello_world
run: |
tebako press --root=tutorial/1_hello_world/hello_world.sample --entry=hello_world.rb
- name: Run packaged 1_hello_world application
run: |
./hello_world
otool -L hello_world
- name: Package 1_hello_world with a difefrent name
run: |
tebako press --root=tutorial/1_hello_world/hello_world.sample --entry=hello_world.rb --output=lesson-1
- name: Run packaged 1_hello_world application with a different name
run: |
./lesson-1
- name: Package 2_packaging_scenarios gemfile sample
run: |
tebako press -r tutorial/2_packaging_scenarios/gemfile.sample -e ticker.rb -o ticker.tebako.
# Cannot run this sample since GH Actions does not allow such websocket connection to the outside world
- name: Package 2_packaging_scenarios gemspec and gemfile sample
run: |
tebako press -r tutorial/2_packaging_scenarios/gemspec_and_gemfile.sample -e tebako-table-cli -o table.tebako
- name: Run packaged 2_packaging_scenarios gemspec and gemfile sample
run: |
./table.tebako
- name: Package 2_packaging_scenarios gemspec sample
run: |
tebako press -r tutorial/2_packaging_scenarios/gemspec.sample -e tebako-table-cli -o table.tebako
- name: Run packaged 2_packaging_scenarios gemspec sample
run: |
./table.tebako
- name: Package 2_packaging_scenarios gem sample
run: |
mkdir -p tutorial/2_packaging_scenarios/gem.sample
pushd tutorial/2_packaging_scenarios/gemspec.sample
gem build tebako-table.gemspec -o ../gem.sample/tebako-test-0.0.2.gem
popd
tebako press -r tutorial/2_packaging_scenarios/gem.sample -e tebako-table-cli -o table.tebako
- name: Run packaged 2_packaging_scenarios gems sample
run: |
./table.tebako