-
Notifications
You must be signed in to change notification settings - Fork 25
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Initial Snapshot build platfom supporting Windows and macOS to begin …
…with.
- Loading branch information
Showing
6 changed files
with
825 additions
and
23 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
Snapshot builds are based on the latest development code which means they may or may not be stable and probably won't be documented. As such, your mileage may vary. | ||
These builds are better suited for more experienced users and developers although everyone is welcome to give them a shot and provide feedback. | ||
|
||
### Bugs | ||
|
||
If you find issues with these builds then post a thorough bug report on our [Issue Tracker!](https://github.com/HandBrake/HandBrake/issues) | ||
Please don't assume we know about your bug or issue. If you see something that isn't working or doesn't make sense, do tell us! | ||
|
||
### Changes | ||
|
||
You can see all the latest changes on our GitHub Timeline. | ||
|
||
### Notices | ||
|
||
* Snapshots are published periodically and every few weeks. This means that the builds can sometimes lag behind the git master. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,82 @@ | ||
name: macOS build | ||
|
||
on: | ||
workflow_dispatch: | ||
|
||
jobs: | ||
build: | ||
name: Build on macOS | ||
runs-on: macos-latest | ||
steps: | ||
- uses: actions/checkout@v2 | ||
|
||
- name: Toolchain Cache | ||
id: mac-toolchain | ||
uses: actions/cache@v2 | ||
with: | ||
path: /usr/local | ||
key: mac-toolchain | ||
|
||
- name: Download the Source Code | ||
run: | | ||
git clone https://github.com/HandBrake/HandBrake.git | ||
cd HandBrake | ||
git submodule update --init --recursive | ||
- name: Setup Environment | ||
if: steps.mac-toolchain.outputs.cache-hit != 'true' | ||
run: | | ||
HandBrake/scripts/mac-toolchain-build /usr/local | ||
- name: Build HandBrake | ||
run: | | ||
cd HandBrake | ||
./configure | ||
cd build | ||
make ub && make pkg.create | ||
- name: Upload Assets | ||
uses: actions/upload-artifact@v2 | ||
with: | ||
name: HandBrake-macos | ||
path: ./HandBrake/build/pkg/*.dmg | ||
|
||
|
||
deploy_nightly: | ||
name: Deploy Nightly Build | ||
runs-on: ubuntu-latest | ||
needs: build | ||
steps: | ||
- uses: actions/checkout@v2 | ||
|
||
- name: Download Artifacts - Universal Binaries | ||
uses: actions/download-artifact@v2 | ||
with: | ||
name: HandBrake-macos | ||
path: mac/ | ||
|
||
# Generate Hashes | ||
- name: Generate SHA265 Hashes | ||
run: | | ||
cd mac | ||
sha256sum * > sha256.txt | ||
# Publishing the Release | ||
- name: Remove the old Release | ||
uses: dev-drprasad/[email protected] | ||
with: | ||
keep_latest: 0 | ||
delete_tag_pattern: "mac" | ||
env: | ||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | ||
|
||
- uses: ncipollo/release-action@v1 | ||
with: | ||
artifacts: "mac/*.*" | ||
name: "Snapshots for macOS" | ||
bodyFile: .github/workflows/mac_rel_body.md | ||
prerelease: true | ||
replacesArtifacts: false | ||
allowUpdates: false | ||
tag: mac | ||
token: ${{ secrets.GITHUB_TOKEN }} |
Oops, something went wrong.