-
-
Notifications
You must be signed in to change notification settings - Fork 71
Bump to build-tools 35.0.2 #16
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Open
Taknok
wants to merge
20
commits into
ReVanced:main
Choose a base branch
from
Taknok:main
base: main
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
Changes from all commits
Commits
Show all changes
20 commits
Select commit
Hold shift + click to select a range
e8dd686
Migrate to submodules
Taknok d3d64f2
doc: update comment referring platform tools version
Taknok e98649f
doc: fix licence
Taknok 1fbf7ba
Update README.md
Taknok 1ec268b
Update README.md
Taknok 8282166
Update README.md
Taknok e1ad32c
Update README.md
Taknok c5b86bd
Update README.md
Taknok 0fc0798
Update build-tools/aapt2.cmake
Taknok 25698f0
Update aapt2.cmake
Taknok 380d51c
Update build.sh
Taknok b0be279
Update build.sh
Taknok 39f58eb
Update README.md
Taknok eeb223f
Move misc to root
Taknok 29fee0c
set build dir for release
Taknok b0c58c3
Update readme
Taknok df54728
chore(release): 1.0.0 [skip ci]
semantic-release-bot 8a9da3d
Use prebuilt protoc
Taknok 1adcce5
fix: Typo on unzip option
Taknok f78cc25
chore(release): 1.0.0 [skip ci]
semantic-release-bot File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or 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 @@ | ||
version: 2 | ||
updates: | ||
- package-ecosystem: github-actions | ||
labels: [] | ||
directory: / | ||
target-branch: dev | ||
schedule: | ||
interval: monthly | ||
|
||
- package-ecosystem: npm | ||
labels: [] | ||
directory: / | ||
target-branch: dev | ||
schedule: | ||
interval: monthly |
This file was deleted.
Oops, something went wrong.
This file contains hidden or 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,48 @@ | ||
name: Build pull request | ||
|
||
on: | ||
workflow_dispatch: | ||
pull_request: | ||
branches: | ||
- dev | ||
|
||
jobs: | ||
build: | ||
name: Build | ||
runs-on: ubuntu-latest | ||
strategy: | ||
matrix: | ||
target_arch: [x86_64, x86, arm64-v8a, armeabi-v7a] | ||
fail-fast: false | ||
steps: | ||
- name: Checkout | ||
uses: actions/checkout@v4 | ||
with: | ||
submodules: 'true' | ||
|
||
- name: Setup NDK | ||
uses: nttld/setup-ndk@v1 | ||
id: setup-ndk | ||
with: | ||
ndk-version: r27c | ||
add-to-path: false | ||
|
||
- name: Get protoc | ||
run: | | ||
wget https://github.com/protocolbuffers/protobuf/releases/download/v21.12/protoc-21.12-linux-x86_64.zip | ||
sudo unzip -j protoc-*.zip bin/protoc -d /usr/local/bin/ | ||
|
||
- name: Patch | ||
run: bash ./patch.sh | ||
|
||
- name: Compile aapt2 | ||
env: | ||
ANDROID_NDK_HOME: ${{ steps.setup-ndk.outputs.ndk-path }} | ||
run: bash ./build.sh ${{ matrix.target_arch }} | ||
|
||
- name: Upload artifacts | ||
uses: actions/upload-artifact@v4 | ||
with: | ||
name: aapt2-${{ matrix.target_arch }} | ||
path: ${{ github.workspace }}/build/bin/aapt2-* | ||
if-no-files-found: error |
This file contains hidden or 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,29 @@ | ||
name: Open a PR to main | ||
|
||
on: | ||
push: | ||
branches: | ||
- dev | ||
workflow_dispatch: | ||
|
||
env: | ||
MESSAGE: Merge branch `${{ github.head_ref || github.ref_name }}` to `main` | ||
|
||
permissions: | ||
pull-requests: write | ||
|
||
jobs: | ||
pull-request: | ||
name: Open pull request | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Checkout | ||
uses: actions/checkout@v4 | ||
|
||
- name: Open pull request | ||
uses: repo-sync/pull-request@v2 | ||
with: | ||
destination_branch: 'main' | ||
pr_title: 'chore: ${{ env.MESSAGE }}' | ||
pr_body: 'This pull request will ${{ env.MESSAGE }}.' | ||
pr_draft: true |
This file contains hidden or 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,97 @@ | ||
name: Release | ||
|
||
on: | ||
workflow_dispatch: | ||
push: | ||
branches: | ||
- main | ||
- dev | ||
|
||
jobs: | ||
build: | ||
name: Build | ||
runs-on: ubuntu-latest | ||
strategy: | ||
matrix: | ||
target_arch: [x86_64, x86, arm64-v8a, armeabi-v7a] | ||
fail-fast: false | ||
steps: | ||
- name: Checkout | ||
uses: actions/checkout@v4 | ||
with: | ||
submodules: 'true' | ||
|
||
- name: Setup NDK | ||
uses: nttld/setup-ndk@v1 | ||
id: setup-ndk | ||
with: | ||
ndk-version: r27c | ||
add-to-path: false | ||
|
||
- name: Get protoc | ||
run: | | ||
wget https://github.com/protocolbuffers/protobuf/releases/download/v21.12/protoc-21.12-linux-x86_64.zip | ||
sudo unzip -j protoc-*.zip bin/protoc -d /usr/local/bin/ | ||
|
||
- name: Patch | ||
run: bash ./patch.sh | ||
|
||
- name: Compile aapt2 | ||
env: | ||
ANDROID_NDK_HOME: ${{ steps.setup-ndk.outputs.ndk-path }} | ||
run: bash ./build.sh ${{ matrix.target_arch }} | ||
|
||
- name: Upload artifacts | ||
uses: actions/upload-artifact@v4 | ||
with: | ||
name: aapt2-${{ matrix.target_arch }} | ||
path: ${{ github.workspace }}/build/bin/aapt2-* | ||
if-no-files-found: error | ||
|
||
release: | ||
needs: build | ||
runs-on: ubuntu-latest | ||
permissions: | ||
id-token: write | ||
contents: write | ||
attestations: write | ||
steps: | ||
- name: Checkout | ||
uses: actions/checkout@v4 | ||
with: | ||
# Make sure the release step uses its own credentials: | ||
# https://github.com/cycjimmy/semantic-release-action#private-packages | ||
persist-credentials: false | ||
|
||
- name: Download all built artifacts | ||
uses: actions/download-artifact@v4 | ||
with: | ||
path: ${{ github.workspace }}/build/bin/ | ||
merge-multiple: true | ||
|
||
- name: Generate attestations | ||
if: ${{ steps.release.outputs.release_created }} | ||
uses: actions/attest-build-provenance@v2 | ||
with: | ||
subject-path: ${{ github.workspace }}/build/bin/aapt2-* | ||
|
||
- name: Setup Node.js | ||
uses: actions/setup-node@v4 | ||
with: | ||
node-version: "lts/*" | ||
cache: 'npm' | ||
|
||
- name: Install dependencies | ||
run: npm install | ||
|
||
- name: Import GPG key | ||
uses: crazy-max/ghaction-import-gpg@v6 | ||
with: | ||
gpg_private_key: ${{ secrets.GPG_PRIVATE_KEY }} | ||
passphrase: ${{ secrets.GPG_PASSPHRASE }} | ||
fingerprint: ${{ vars.GPG_FINGERPRINT }} | ||
|
||
- name: Release | ||
env: | ||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | ||
run: npm exec semantic-release |
This file contains hidden or 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 |
---|---|---|
@@ -1,2 +1,4 @@ | ||
bin/ | ||
build/ | ||
build/ | ||
# For CI | ||
artifacts/ |
This file contains hidden or 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
This file contains hidden or 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,45 @@ | ||
{ | ||
"branches": [ | ||
"main", | ||
{ | ||
"name": "dev", | ||
"prerelease": true | ||
} | ||
], | ||
"plugins": [ | ||
[ | ||
"@semantic-release/commit-analyzer", { | ||
"releaseRules": [ | ||
{ "type": "build", "scope": "Needs bump", "release": "patch" } | ||
] | ||
} | ||
], | ||
"@semantic-release/release-notes-generator", | ||
"@semantic-release/changelog", | ||
[ | ||
"@semantic-release/git", | ||
{ | ||
"assets": ["CHANGELOG.md", "VERSION"], | ||
"message": "chore(release): ${nextRelease.version} [skip ci]\n\n${nextRelease.notes}" | ||
Comment on lines
+22
to
+23
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. I don't think we had VERSION in .releaserc in other repos |
||
} | ||
], | ||
[ | ||
"@saithodev/semantic-release-backmerge", | ||
{ | ||
backmergeBranches: [{"from": "main", "to": "dev"}], | ||
clearWorkspace: true | ||
} | ||
], | ||
[ | ||
"@semantic-release/github", | ||
{ | ||
successComment: false, | ||
assets: [ | ||
{ | ||
"path": "build/bin/aapt-*" | ||
} | ||
] | ||
} | ||
] | ||
] | ||
} |
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This doesn't need to be a separate job, just add the missing steps