Skip to content

Commit

Permalink
Initial Snapshot build platfom supporting Windows and macOS to begin …
Browse files Browse the repository at this point in the history
…with.
  • Loading branch information
sr55 committed Aug 15, 2021
1 parent c5d0cde commit ed3b7e2
Show file tree
Hide file tree
Showing 6 changed files with 825 additions and 23 deletions.
15 changes: 15 additions & 0 deletions .github/workflows/mac_rel_body.md
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.
82 changes: 82 additions & 0 deletions .github/workflows/nightly-mac.yml
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 }}
Loading

0 comments on commit ed3b7e2

Please sign in to comment.