-
Notifications
You must be signed in to change notification settings - Fork 100
129 lines (114 loc) · 3.16 KB
/
source.yml
File metadata and controls
129 lines (114 loc) · 3.16 KB
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
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
name: Source
on:
push:
branches:
- fs-uae-3
- master
- stable
- test
pull_request:
branches:
- fs-uae-3
- master
- stable
jobs:
Source:
runs-on: ubuntu-22.04
env:
DISCORD_WEBHOOK_URL: ${{ secrets.DISCORD_WEBHOOK_URL }}
DROPBOX_APP_KEY: ${{ secrets.DROPBOX_APP_KEY }}
DROPBOX_APP_SECRET: ${{ secrets.DROPBOX_APP_SECRET }}
DROPBOX_REFRESH_TOKEN: ${{ secrets.DROPBOX_REFRESH_TOKEN }}
steps:
- name: Update package repositories
run: >-
sudo apt update
- name: Install deb packages
run: >-
sudo apt install
dos2unix
gettext
intltool
libao-dev
libasound2-dev
libevdev-dev
libgbm-dev
libgl-dev
libglu-dev
libopenal-dev
libpulse-dev
libudev-dev
libusb-1.0-0-dev
libx11-dev
libx11-xcb-dev
libxcb1-dev
libxcb-glx0-dev
libxcb-icccm4-dev
libxcb-image0-dev
libxcb-keysyms1-dev
libxcb-randr0-dev
libxcb-render-util0-dev
libxcb-shape0-dev
libxcb-shm0-dev
libxcb-sync0-dev
libxcb-xfixes0-dev
libxcb-xinerama0-dev
libxcursor-dev
libxext-dev
libxfixes-dev
libxi-dev
libxinerama-dev
libxrandr-dev
libxrender-dev
x11proto-dev
- name: Install pip packages
run: |
sudo python3 -m pip install -U pip setuptools
sudo python3 -m pip install -U meson ninja
- uses: actions/checkout@v4
with:
fetch-depth: 0
- name: Cache dependencies
uses: actions/cache@v4
id: build_env_cache
with:
path: build/env/_prefix
key: build_env_${{ hashFiles('build/env/**/*') }}_${{ runner.os }}
- name: Build dependencies
if: steps.build_env_cache.outputs.cache-hit != 'true'
run: |
build/env/setup
- name: Bootstrap
if: hashFiles('fsbuild/bootstrap') != ''
run: |
build/env/shell fsbuild/bootstrap
- name: Configure
if: hashFiles('fsbuild/configure') != ''
run: |
build/env/shell fsbuild/configure
- name: Distcheck
if: hashFiles('fsbuild/distcheck') != ''
run: |
build/env/shell fsbuild/distcheck
- name: Source
run: |
build/env/shell fsbuild/source
- uses: actions/upload-artifact@v4
with:
name: Source
path: fsbuild/_dist/*
- name: Upload to Dropbox
if: >-
env.DROPBOX_REFRESH_TOKEN != null && (
github.ref == 'refs/heads/beta' ||
github.ref == 'refs/heads/fs-uae-3' ||
github.ref == 'refs/heads/main' ||
github.ref == 'refs/heads/master' ||
github.ref == 'refs/heads/stable' ||
github.ref == 'refs/heads/test'
)
run: |
python3 -m venv .venv
source .venv/bin/activate
python3 -m pip install dropbox==12.0.2
fsbuild/upload