Skip to content

Commit af3aaff

Browse files
committed
adding (untested) build script for MacOS and cooresponding updates to github actions workflow *fingers crossed*
1 parent 6083f5e commit af3aaff

File tree

3 files changed

+358
-58
lines changed

3 files changed

+358
-58
lines changed

.github/workflows/build.yml

Lines changed: 98 additions & 57 deletions
Original file line numberDiff line numberDiff line change
@@ -9,25 +9,113 @@ on:
99

1010
jobs:
1111

12-
linux:
13-
runs-on: ubuntu-latest
14-
# container: debian:buster-slim
12+
# linux:
13+
# runs-on: ubuntu-latest
14+
## container: debian:buster-slim
15+
#
16+
# steps:
17+
#
18+
# - uses: actions/checkout@v2
19+
#
20+
# - name: Execute script to build linux AppImage
21+
# run: "build/linux/buildAppImage.sh"
22+
# shell: bash
23+
#
24+
# - uses: actions/upload-artifact@v2
25+
# with:
26+
# name: helloWorld-linux-x86_64
27+
# path: dist/
28+
#
29+
# - name: Create dist tarball
30+
# run: 'tar -cjvf helloWorld-linux-x86_64.${{ github.run_id }}.tar.bz2 dist/*'
31+
# shell: bash
32+
#
33+
# - name: Create Release
34+
# id: create_release
35+
# uses: actions/create-release@v1
36+
# env:
37+
# GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
38+
# with:
39+
# tag_name: ${{ github.run_id }}_linux
40+
# release_name: 'Public Build Artifact: Linux ${{ github.run_id }}'
41+
# draft: false
42+
# prerelease: true
43+
#
44+
# - name: Upload Release Asset
45+
# id: upload-release-asset
46+
# uses: actions/upload-release-asset@v1
47+
# env:
48+
# GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
49+
# with:
50+
# upload_url: ${{ steps.create_release.outputs.upload_url }} # This pulls from the CREATE RELEASE step above, referencing it's ID to get its outputs object, which include a `upload_url`. See this blog post for more info: https://jasonet.co/posts/new-features-of-github-actions/#passing-data-to-future-steps
51+
# asset_path: helloWorld-linux-x86_64.${{ github.run_id }}.tar.bz2
52+
# asset_name: helloWorld-linux-x86_64.${{ github.run_id }}.tar.bz2
53+
# asset_content_type: application/x-bzip2
54+
#
55+
# windows:
56+
# runs-on: windows-latest
57+
#
58+
# steps:
59+
# - uses: actions/checkout@v2
60+
#
61+
# - name: Execute script to .exe in Windows
62+
# run: "build/windows/buildExe.ps1"
63+
# shell: powershell -Command "& '{0}'"
64+
#
65+
# - uses: actions/upload-artifact@v2
66+
# with:
67+
# name: Windows executable (x86_64)
68+
# path: dist/
69+
#
70+
# - uses: actions/upload-artifact@v2
71+
# with:
72+
# name: helloWorld-windows-x86_64
73+
# path: dist/
74+
#
75+
# - name: Create Release .zip
76+
# run: 'Compress-Archive -DestinationPath helloWorld-windows-x86_64.${{ github.run_id }}.zip -Path dist\*'
77+
# shell: powershell
78+
#
79+
# - name: Create Release
80+
# id: create_release
81+
# uses: actions/create-release@v1
82+
# env:
83+
# GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
84+
# with:
85+
# tag_name: ${{ github.run_id }}_windows
86+
# release_name: 'Public Build Artifact: Windows ${{ github.run_id }}'
87+
# draft: false
88+
# prerelease: true
89+
#
90+
# - name: Upload Release Asset
91+
# id: upload-release-asset
92+
# uses: actions/upload-release-asset@v1
93+
# env:
94+
# GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
95+
# with:
96+
# upload_url: ${{ steps.create_release.outputs.upload_url }} # This pulls from the CREATE RELEASE step above, referencing it's ID to get its outputs object, which include a `upload_url`. See this blog post for more info: https://jasonet.co/posts/new-features-of-github-actions/#passing-data-to-future-steps
97+
# asset_path: helloWorld-windows-x86_64.${{ github.run_id }}.zip
98+
# asset_name: helloWorld-windows-x86_64.${{ github.run_id }}.zip
99+
# asset_content_type: application/zip
100+
101+
mac:
102+
runs-on: macos-latest
15103

16104
steps:
17105

18106
- uses: actions/checkout@v2
19107

20-
- name: Execute script to build linux AppImage
21-
run: "build/linux/buildAppImage.sh"
108+
- name: Execute script to build MacOS .dmg file
109+
run: "build/mac/buildDmg.sh"
22110
shell: bash
23111

24112
- uses: actions/upload-artifact@v2
25113
with:
26-
name: helloWorld-linux-x86_64
114+
name: helloWorld-mac-x86_64
27115
path: dist/
28116

29117
- name: Create dist tarball
30-
run: 'tar -cjvf helloWorld-linux-x86_64.${{ github.run_id }}.tar.bz2 dist/*'
118+
run: 'tar -cjvf helloWorld-mac-x86_64.${{ github.run_id }}.tar.bz2 dist/*'
31119
shell: bash
32120

33121
- name: Create Release
@@ -36,7 +124,7 @@ jobs:
36124
env:
37125
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
38126
with:
39-
tag_name: ${{ github.run_id }}_linux
127+
tag_name: ${{ github.run_id }}_mac
40128
release_name: 'Public Build Artifact: Linux ${{ github.run_id }}'
41129
draft: false
42130
prerelease: true
@@ -48,53 +136,6 @@ jobs:
48136
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
49137
with:
50138
upload_url: ${{ steps.create_release.outputs.upload_url }} # This pulls from the CREATE RELEASE step above, referencing it's ID to get its outputs object, which include a `upload_url`. See this blog post for more info: https://jasonet.co/posts/new-features-of-github-actions/#passing-data-to-future-steps
51-
asset_path: helloWorld-linux-x86_64.${{ github.run_id }}.tar.bz2
52-
asset_name: helloWorld-linux-x86_64.${{ github.run_id }}.tar.bz2
139+
asset_path: helloWorld-mac-x86_64.${{ github.run_id }}.tar.bz2
140+
asset_name: helloWorld-mac-x86_64.${{ github.run_id }}.tar.bz2
53141
asset_content_type: application/x-bzip2
54-
55-
windows:
56-
runs-on: windows-latest
57-
58-
steps:
59-
- uses: actions/checkout@v2
60-
61-
- name: Execute script to .exe in Windows
62-
run: "build/windows/buildExe.ps1"
63-
shell: powershell -Command "& '{0}'"
64-
65-
- uses: actions/upload-artifact@v2
66-
with:
67-
name: Windows executable (x86_64)
68-
path: dist/
69-
70-
- uses: actions/upload-artifact@v2
71-
with:
72-
name: helloWorld-windows-x86_64
73-
path: dist/
74-
75-
- name: Create Release .zip
76-
run: 'Compress-Archive -DestinationPath helloWorld-windows-x86_64.${{ github.run_id }}.zip -Path dist\*'
77-
shell: powershell
78-
79-
- name: Create Release
80-
id: create_release
81-
uses: actions/create-release@v1
82-
env:
83-
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
84-
with:
85-
tag_name: ${{ github.run_id }}_windows
86-
release_name: 'Public Build Artifact: Windows ${{ github.run_id }}'
87-
draft: false
88-
prerelease: true
89-
90-
- name: Upload Release Asset
91-
id: upload-release-asset
92-
uses: actions/upload-release-asset@v1
93-
env:
94-
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
95-
with:
96-
upload_url: ${{ steps.create_release.outputs.upload_url }} # This pulls from the CREATE RELEASE step above, referencing it's ID to get its outputs object, which include a `upload_url`. See this blog post for more info: https://jasonet.co/posts/new-features-of-github-actions/#passing-data-to-future-steps
97-
asset_path: helloWorld-windows-x86_64.${{ github.run_id }}.zip
98-
asset_name: helloWorld-windows-x86_64.${{ github.run_id }}.zip
99-
asset_content_type: application/zip
100-

0 commit comments

Comments
 (0)