-
Notifications
You must be signed in to change notification settings - Fork 0
53 lines (48 loc) · 1.38 KB
/
web-publisher.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
name: Web publisher
on:
push:
branches:
- main
jobs:
web-publisher:
name: Web publisher - ${{matrix.config.project-file}}
runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
config:
- {
bucket-path: 'atta-repos/boids/',
project-file: '/boids.atta'
}
steps:
# Clone project
- uses: actions/checkout@v3
# Clone atta
- uses: actions/checkout@v3
with:
repository: brenocq/atta
ref: master
path: atta
# Setup emscripten
- uses: mymindstorm/setup-emsdk@v9
# Install dependencies
- name: Install dependencies
run: |
sudo apt-get update
sudo apt-get install cmake
cmake --version
gcc --version
# Google Storage setup
- id: 'auth'
uses: google-github-actions/auth@v0
with:
credentials_json: '${{secrets.GCP_CREDENTIALS}}'
- name: Set up Cloud SDK
uses: google-github-actions/setup-gcloud@v0
# Project web build
- name: Build and update basic.atta
working-directory: atta
run: |
./scripts/build.sh --type web_module --static /home/runner/work/boids/boids${{matrix.config.project-file}}
gsutil cp build/web_module-release-static/bin/* gs://${{matrix.config.bucket-path}}