Skip to content
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

Simplify GitHub actions #621

Merged
merged 6 commits into from
May 8, 2023
Merged

Simplify GitHub actions #621

merged 6 commits into from
May 8, 2023

Conversation

mgeisler
Copy link
Collaborator

@mgeisler mgeisler commented May 8, 2023

Small cleanups to the GitHub actions.

They are inconsistent with the rest of the jobs and they overflow the
horizontal space in the GitHub UI.
@mgeisler mgeisler changed the title Remove unnecessary jobs names Simplify GitHub actions May 8, 2023
The GitHub runners include rustup and a recent stable Rust. We only
need to add the necessary target and we’re good to go.

This removes a lot of warnings because the action used an outdated
GitHub API: actions-rs/toolchain#219
@mgeisler mgeisler force-pushed the simplify-actions branch from 432d186 to 417ea57 Compare May 8, 2023 10:06
The job is testing a single translation, so it should be singular.
@mgeisler mgeisler force-pushed the simplify-actions branch 3 times, most recently from ed236b0 to 9caafe9 Compare May 8, 2023 10:21
This simplifies the workflow a little and ensures that we get
artifacts uploaded of the English version for every PR.
@mgeisler mgeisler force-pushed the simplify-actions branch from 9caafe9 to e211a38 Compare May 8, 2023 11:40
@mgeisler mgeisler requested a review from djmitche May 8, 2023 12:21
mgeisler added 2 commits May 8, 2023 14:24
GitHub actions supports setting the working directory directly.
Right now, the artifacts all contain the same two top-level folders:
html/ and exerciser/. The former is what we actually deploy, the
second is a side-effect of the exerciser plugin.

With this change, we only upload the HTML and we ensure the zip file
for the xx language has a top-level comprehensive-rust-xx/ folder.
This makes it much nicer to use the generated artifacts.
@mgeisler mgeisler force-pushed the simplify-actions branch from 56feb03 to c86a393 Compare May 8, 2023 12:42
@mgeisler mgeisler merged commit e19fc8b into main May 8, 2023
@mgeisler mgeisler deleted the simplify-actions branch May 8, 2023 14:32
NoahDragon pushed a commit to wnghl/comprehensive-rust that referenced this pull request Jul 19, 2023
* Remove unnecessary jobs names

They are inconsistent with the rest of the jobs and they overflow the
horizontal space in the GitHub UI.

* Remove unnecessary toolchain action

The GitHub runners include rustup and a recent stable Rust. We only
need to add the necessary target and we’re good to go.

This removes a lot of warnings because the action used an outdated
GitHub API: actions-rs/toolchain#219

* Simplify job name

The job is testing a single translation, so it should be singular.

* Test English source with translations

This simplifies the workflow a little and ensures that we get
artifacts uploaded of the English version for every PR.

* Avoid shell command chain

GitHub actions supports setting the working directory directly.

* Upload only the book artifact

Right now, the artifacts all contain the same two top-level folders:
html/ and exerciser/. The former is what we actually deploy, the
second is a side-effect of the exerciser plugin.

With this change, we only upload the HTML and we ensure the zip file
for the xx language has a top-level comprehensive-rust-xx/ folder.
This makes it much nicer to use the generated artifacts.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants