Skip to content

Commit b8fccb1

Browse files
committed
feat: Create workflow to build binaries
- Create main.yml - Download and build make inside GH action
1 parent 98708ba commit b8fccb1

File tree

1 file changed

+32
-0
lines changed

1 file changed

+32
-0
lines changed

.github/workflows/main.yml

Lines changed: 32 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,32 @@
1+
name: Build make for Windows (x86_64)
2+
3+
on:
4+
push:
5+
branches: [ "main" ]
6+
7+
jobs:
8+
build:
9+
runs-on: ubuntu-latest
10+
container: registry.fedoraproject.org/fedora:37
11+
steps:
12+
- name: Install Dependencies
13+
run: dnf install -y mingw64-gcc zip make wget tar
14+
15+
- uses: actions/checkout@v3
16+
17+
- name: Download make release tar.gz file
18+
run: wget "https://ftpmirror.gnu.org/make/make-$(cat build_version.txt).tar.gz"
19+
20+
- name: Print out hash of tar.gz file
21+
run: sha256sum "make-$(cat build_version.txt).tar.gz"
22+
23+
- name: Run the build process
24+
run: ./cross_build_w64.sh
25+
26+
- name: Hash the built binaries
27+
run: sha256sum make-$(cat build_version.txt)/dist/*
28+
29+
- uses: actions/upload-artifact@v3
30+
with:
31+
name: make-bin-win64
32+
path: ./make-*/dist/

0 commit comments

Comments
 (0)