-
Notifications
You must be signed in to change notification settings - Fork 214
Move language spec upload from Github actions to cloud build: Add cloudbuild.yaml #4323
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
Merged
Merged
Changes from 23 commits
Commits
Show all changes
31 commits
Select commit
Hold shift + click to select a range
838e7d0
New file
eernstg 2e26514
WIP
eernstg f41d228
Ignoring generated directory
eernstg a66bd62
WIP
eernstg be66c99
Add pwd step to cloudbuild.yaml
eernstg cfa28c4
Use cloud logging
dart-github-bot cafbd90
Update cloudbuild.yaml
athomas ac0d168
More cloud build debugging
athomas c632b39
More debugging.
athomas f4b2a57
Try different shebang
athomas b941613
Run script in ubuntu
athomas c8ee9c3
Revert shebang
athomas f888bbd
Another shebang attempt
athomas b04f64a
Try build_pdf without sudo
athomas 8e004a5
Install make
athomas 181da1e
Install build-essential instead
athomas 3c2d6c3
Say "yes"
athomas 9758bb3
Add automap substitutions and artifacts upload
athomas ccf3205
Change output folder to match cloud build config
athomas ae314e5
Update cloudbuild.yaml
athomas 5629cf5
Add the PR number to the spec PDF uploading location
eernstg f511bee
Remove the path in the location of artifacts
eernstg a322c52
Copy the spec PDF to the `artifacts/pr/$_PR_NUMBER` subdirecory, top …
eernstg 6f412ee
Change PR copy to require a non-empty $_PR_NUMBER
eernstg a3ff097
Try to upload with gcr.io/cloud-builders/gsutil
athomas c9df0a4
Fix typo
athomas 5c74772
Update build_pdf
athomas ff1dd18
Fix option order
athomas ee566c1
Use BRANCH_NAME
athomas 816a362
Pass env explicitely
athomas 493f39f
Try using `*` to move artifacts to root
athomas 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,10 @@ | ||
steps: | ||
- name: 'ubuntu' | ||
args: ['specification/scripts/build_pdf'] | ||
options: | ||
automapSubstitutions: true | ||
logging: CLOUD_LOGGING_ONLY | ||
artifacts: | ||
objects: | ||
location: 'gs://dart-specification/' | ||
paths: ['specification/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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -11,3 +11,4 @@ dartLangSpec-terse.tex | |
*-list.txt | ||
.dart_tool/ | ||
.packages | ||
firebase/ |
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,17 @@ | ||
#!/usr/bin/env -S bash --norc | ||
|
||
apt-get update -qq | ||
apt-get install -y --no-install-recommends \ | ||
build-essential \ | ||
texlive-latex-base \ | ||
texlive-latex-extra \ | ||
texlive-fonts-recommended \ | ||
lmodern | ||
cd specification | ||
make | ||
mkdir -p artifacts | ||
if [ "$_BASE_BRANCH" == "main" ]; then | ||
cp dartLangSpec.pdf artifacts/DartLangSpecDraft.pdf | ||
fi | ||
mkdir -p artifacts/pr/$_PR_NUMBER | ||
eernstg marked this conversation as resolved.
Show resolved
Hide resolved
|
||
cp dartLangSpec.pdf artifacts/pr/$_PR_NUMBER/DartLangSpecDraft.pdf |
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.
Uh oh!
There was an error while loading. Please reload this page.