Skip to content

Commit e0fe4e6

Browse files
authored
Github Automated Build (#27)
1 parent 6f4331d commit e0fe4e6

File tree

1 file changed

+50
-0
lines changed

1 file changed

+50
-0
lines changed

.github/workflows/build.yml

Lines changed: 50 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,50 @@
1+
name: Build
2+
3+
on:
4+
push:
5+
branches:
6+
- main
7+
- '*'
8+
pull_request:
9+
branches:
10+
- main
11+
- '*'
12+
13+
env:
14+
# Path to the solution file relative to the root of the project.
15+
SOLUTION_FILE_PATH: .
16+
17+
permissions:
18+
contents: read
19+
20+
defaults:
21+
run:
22+
shell: bash {0}
23+
24+
jobs:
25+
build:
26+
runs-on: ubuntu-latest
27+
28+
steps:
29+
- name: Setup Requirements
30+
run: |
31+
sudo apt-get install mingw-w64 markdown libfuse-dev
32+
33+
- name: Checkout
34+
uses: actions/checkout@v4
35+
36+
- name: Build Linux
37+
run: |
38+
sudo make -C build/unix package
39+
40+
41+
- name: Build Windows
42+
run: |
43+
sudo make -C build/unix cleandirs
44+
sudo make -C build/unix CC=x86_64-w64-mingw32-gcc WIN=1 package || exit 1
45+
46+
- name: Results
47+
run: |
48+
md5sum build/unix/toolshed-*.tgz
49+
ls build/unix/toolshed-*.tgz | xargs -I {} bash -c 'ls -al --color=auto {}; tar tzvf {}'
50+

0 commit comments

Comments
 (0)