Fix battery drain issue #12
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
name: build | |
on: | |
push: | |
branches: ["main"] | |
workflow_dispatch: | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
permissions: | |
# Give the default GITHUB_TOKEN write permission to commit and push the changed files back to the repository. | |
contents: write | |
steps: | |
- uses: actions/checkout@v3 | |
with: | |
fetch-depth: 0 # It's needed for git-restore-mtime | |
- name: Reset directories timestamp # Workaround for https://github.com/MestreLion/git-tools/issues/47 | |
run: find . -mindepth 1 -type d -not -iwholename '*.git*' -exec touch -t 197001010000 {} \; | |
- name: Restore files timestamp | |
uses: chetan/git-restore-mtime-action@v2 # Restore files original modification time to have deterministic zip bundles | |
# - name: Setup upterm session | |
# uses: lhotari/action-upterm@v1 | |
- name: "Compile OCBundle" | |
working-directory: ./Sources/OCBundle | |
run: zip -qqrX ../../OCBundle.zip ./ | |
- name: "Compile AIO" | |
working-directory: ./Sources/AIO | |
run: zip -qqrX ../../AIO.zip ./ | |
- name: "Compile OC-Suite Wizard" | |
working-directory: ./Sources/OCBundle | |
run: zip -qqrX "../../OC-Suite Wizard.zip" "./switch/.packages/OC-Suite Wizard" ./switch/.overlays/ovlmenu.ovl | |
- uses: stefanzweifel/git-auto-commit-action@v5 | |
with: | |
commit_message: "Build: Compile Bundle" | |
file_pattern: "*.zip" |