Skip to content

Commit cdc98ea

Browse files
committed
Adds dmg build.
1 parent 9fa1ea4 commit cdc98ea

File tree

1 file changed

+65
-39
lines changed

1 file changed

+65
-39
lines changed

.github/workflows/ant.yml

Lines changed: 65 additions & 39 deletions
Original file line numberDiff line numberDiff line change
@@ -40,44 +40,70 @@ jobs:
4040
run: |
4141
cat version.txt
4242
cat upload-url.txt
43-
job-debian-build:
44-
name: Debian Build
45-
runs-on: ubuntu-18.04
43+
# job-debian-build:
44+
# name: Debian Build
45+
# runs-on: ubuntu-18.04
46+
# needs: job-create-release
47+
# steps:
48+
# - uses: actions/checkout@v2
49+
# - name: Set up JDK 1.8
50+
# uses: actions/setup-java@v1
51+
# with:
52+
# java-version: 1.8
53+
# - name: Install dpkg tools
54+
# run: sudo apt-get install dpkg-dev debhelper javahelper
55+
# - name: Download version result
56+
# uses: actions/download-artifact@v1
57+
# with:
58+
# name: version
59+
# - name: Download upload_url result
60+
# uses: actions/download-artifact@v1
61+
# with:
62+
# name: upload-url
63+
# - shell: bash
64+
# run: |
65+
# version=`cat version/version.txt`
66+
# uploadURL=`cat upload-url/upload-url.txt`
67+
# echo ::set-env name=VERSION::$version
68+
# echo ::set-env name=UPLOADURL::$uploadURL
69+
# - name: Build with Ant
70+
# run: ant -noinput -buildfile build.xml -Dsplashscreen.enable=true -Dlabel=$VERSION -Dgoogle.api.client.id="${{ secrets.GOOGLE_API_CLIENT_ID }}" -Dgoogle.api.client.secret="${{ secrets.GOOGLE_API_CLIENT_SECRET }}" rebuild deb
71+
# - name: Upload Release Asset
72+
# id: upload-release-asset
73+
# uses: actions/upload-release-asset@v1
74+
# env:
75+
# GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
76+
# with:
77+
# upload_url: ${{ env.UPLOADURL }} # 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
78+
# asset_path: ./release/debian/jitsi_2.11.${{ env.VERSION }}-1_amd64.deb
79+
# asset_name: jitsi_2.11.${{ env.VERSION }}-1_amd64.deb
80+
# asset_content_type: application/octet-stream
81+
job-osx-build:
82+
name: MacOSX Build
83+
runs-on: macos-latest
4684
needs: job-create-release
4785
steps:
48-
- uses: actions/checkout@v2
49-
- name: Set up JDK 1.8
50-
uses: actions/setup-java@v1
51-
with:
52-
java-version: 1.8
53-
- name: Install dpkg tools
54-
run: sudo apt-get install dpkg-dev debhelper javahelper
55-
- name: Download version result
56-
uses: actions/download-artifact@v1
57-
with:
58-
name: version
59-
- name: Download upload_url result
60-
uses: actions/download-artifact@v1
61-
with:
62-
name: upload-url
63-
- shell: bash
64-
run: |
65-
version=`cat version/version.txt`
66-
uploadURL=`cat upload-url/upload-url.txt`
67-
echo ::set-env name=VERSION::$version
68-
echo ::set-env name=UPLOADURL::$uploadURL
69-
- name: Build with Ant
70-
run: ant -noinput -buildfile build.xml -Dsplashscreen.enable=true -Dlabel=$VERSION rebuild deb
71-
# - name: Test output
72-
# run: echo $VERSION
73-
# run: ls -l release/debian
74-
- name: Upload Release Asset
75-
id: upload-release-asset
76-
uses: actions/upload-release-asset@v1
77-
env:
78-
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
79-
with:
80-
upload_url: ${{ env.UPLOADURL }} # 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
81-
asset_path: ./release/debian/jitsi_2.11.${{ env.VERSION }}-1_amd64.deb
82-
asset_name: jitsi_2.11.${{ env.VERSION }}-1_amd64.deb
83-
asset_content_type: application/octet-stream
86+
- uses: actions/checkout@v2
87+
- name: Set up JDK 1.8
88+
uses: actions/setup-java@v1
89+
with:
90+
java-version: 1.8
91+
- name: Download version result
92+
uses: actions/download-artifact@v1
93+
with:
94+
name: version
95+
- name: Download upload_url result
96+
uses: actions/download-artifact@v1
97+
with:
98+
name: upload-url
99+
- shell: bash
100+
run: |
101+
version=`cat version/version.txt`
102+
uploadURL=`cat upload-url/upload-url.txt`
103+
echo ::set-env name=VERSION::$version
104+
echo ::set-env name=UPLOADURL::$uploadURL
105+
- name: Build with Ant
106+
run: ant -noinput -buildfile build.xml -Dsplashscreen.enable=true -Dlabel="$VERSION" -Dsparkle="$VERSION" -Dpackage.name="jitsi" -Dlink.updates.macosx="https://download.jitsi.org/jitsi/macosx/sparkle/updates.xml" -Dlink.download.macosx="https://download.jitsi.org/jitsi/nightly/macosx/jitsi-2.11.$VERSION.dmg" -Dlink.sparkle.updates.index="https://download.jitsi.org/jitsi/nightly/macosx/sparkle/index.html" -Dgoogle.api.client.id="${{ secrets.GOOGLE_API_CLIENT_ID }}" -Dgoogle.api.client.secret="${{ secrets.GOOGLE_API_CLIENT_SECRET }}" clean make dmg
107+
- shell: bash
108+
run: |
109+
ls -l release/macosx/

0 commit comments

Comments
 (0)