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

switch to GHCR and use more github actions #609

Merged
merged 89 commits into from
Mar 14, 2022
Merged

Conversation

Emilgardis
Copy link
Member

@Emilgardis Emilgardis commented Nov 18, 2021

addresses #607 #571

what this does

  • change default registry to look for cross images to ghcr.io
  • move from azure CI for docker images to GHA
  • add clippy (that does not fail job, can be made to do this later) and rustfmt
  • bump QEMU to 5.1
  • Add (better) layer caching

Some nice things to have/include

  • Cache docker images, possibly using buildx (probably out of scope of this pr)
  • Use actions/cache
  • make configuration easier to maintain
  • possibly replace docker setup with actions

@Emilgardis
Copy link
Member Author

bors try
🤞

bors bot added a commit that referenced this pull request Nov 18, 2021
@Emilgardis

This comment has been minimized.

@bors

This comment has been minimized.

@Emilgardis

This comment has been minimized.

bors bot added a commit that referenced this pull request Nov 18, 2021
@Emilgardis

This comment has been minimized.

@Emilgardis

This comment has been minimized.

@bors

This comment has been minimized.

@Emilgardis

This comment has been minimized.

@Emilgardis

This comment has been minimized.

@bors

This comment has been minimized.

@Emilgardis

This comment has been minimized.

@Emilgardis

This comment has been minimized.

@Emilgardis
Copy link
Member Author

bors try

not sure what's up here

bors bot added a commit that referenced this pull request Nov 18, 2021
run: exit 0
docker-builds:
name: Docker Build
runs-on: ${{ matrix.image }}
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

this should work, but we're getting:

Docker Build : .github#L1
Error when evaluating 'runs-on' for job 'docker-builds'. .github/workflows/docker.yml (Line: 18, Col: 14): Unexpected value ''

matrix.image should be ubuntu-latest always, unless the include overrides it

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

it doesn't work like I thought it did :D

@Emilgardis

This comment was marked as outdated.

@bors

This comment was marked as outdated.

@Emilgardis

This comment was marked as outdated.

bors bot added a commit that referenced this pull request Nov 18, 2021
@cross-rs cross-rs deleted a comment from bors bot Nov 18, 2021
@cross-rs cross-rs deleted a comment from bors bot Nov 18, 2021
@Emilgardis

This comment was marked as outdated.

bors bot added a commit that referenced this pull request Nov 18, 2021
@Emilgardis
Copy link
Member Author

@Emilgardis

This comment was marked as outdated.

bors bot added a commit that referenced this pull request Nov 18, 2021
bors bot added a commit that referenced this pull request Mar 13, 2022
609: switch to GHCR and use more github actions r=reitermarkus a=Emilgardis

addresses #607 #571

## what this does

- [x] change default registry to look for cross images to `ghcr.io`
- [x] move from azure CI for docker images to GHA
- [x] add clippy (that does not fail job, can be made to do this later) and rustfmt
- [x] bump QEMU to 5.1
- [ ] Add (better) layer caching

## Some nice things to have/include
- [x] Cache docker images, possibly using buildx (probably out of scope of this pr)
- [x] Use actions/cache
- [ ] make configuration easier to maintain
- [ ] possibly replace docker setup with actions

Co-authored-by: Emil Gardström <emil.gardstrom@gmail.com>
Co-authored-by: Marco A L Barbosa <malbarbo@gmail.com>
Co-authored-by: Jesse Szwedko <jesse@szwedko.me>
Co-authored-by: Will <will@glozer.net>
Co-authored-by: Sven-Hendrik Haase <svenstaro@gmail.com>
Co-authored-by: Joe Richey <joerichey@google.com>
Co-authored-by: Markus Reiter <me@reitermark.us>
@bors
Copy link
Contributor

bors bot commented Mar 13, 2022

Build failed:

@reitermarkus
Copy link
Member

bors retry

@bors
Copy link
Contributor

bors bot commented Mar 14, 2022

Build succeeded:

@bors bors bot merged commit 5a0260b into cross-rs:main Mar 14, 2022
bors bot added a commit that referenced this pull request Mar 14, 2022
646: don't push and load at the same time r=reitermarkus a=Emilgardis

https://github.com/cross-rs/cross/actions/runs/1978039245 merge of #609 failed, this should fix that

Co-authored-by: Emil Gardström <emil.gardstrom@gmail.com>
reitermarkus added a commit that referenced this pull request Mar 16, 2022
bors bot added a commit that referenced this pull request Mar 16, 2022
653: Add #609 to changelog. r=Emilgardis a=reitermarkus



Co-authored-by: Markus Reiter <me@reitermark.us>
@Emilgardis Emilgardis deleted the ghcr_gha branch April 6, 2022 09:20
@Alexhuszagh Alexhuszagh mentioned this pull request May 27, 2022
@Emilgardis Emilgardis added this to the v0.2.2 milestone Jun 15, 2022
Alexhuszagh added a commit to Alexhuszagh/cross that referenced this pull request Jun 22, 2022
Fixes the solaris targets, and re-enables them in CI. Related to cross-rs#534 and cross-rs#609.
Alexhuszagh added a commit to Alexhuszagh/cross that referenced this pull request Jun 22, 2022
Uses a trick described in
rust-lang/rust/issues#85821#issuecomment-969369677. Note that this still
allows it to run, despite there seemingly being no entry point: this has
no effect on the resulting code.

Related to cross-rs#609. Partially fixes cross-rs#839.
Alexhuszagh added a commit to Alexhuszagh/cross that referenced this pull request Jun 23, 2022
Uses a trick described in
rust-lang/rust/issues#85821#issuecomment-969369677. Note that this still
allows it to run, despite there seemingly being no entry point: this has
no effect on the resulting code.

Related to cross-rs#609. Partially fixes cross-rs#839.
bors bot added a commit that referenced this pull request Jun 24, 2022
840: Re-enable wasm32-unknown-emscripten target. r=Emilgardis a=Alexhuszagh

Uses a trick described in rust-lang/rust/issues#85821#issuecomment-969369677. Note that this still allows it to run, despite there seemingly being no entry point: this has no effect on the resulting code.

Related to #609. Partially fixes #839.

Co-authored-by: Alex Huszagh <ahuszagh@gmail.com>
Emilgardis pushed a commit to Emilgardis/cross that referenced this pull request Jun 24, 2022
Fixes the solaris targets, and re-enables them in CI. Related to cross-rs#534 and cross-rs#609.
Emilgardis pushed a commit to Emilgardis/cross that referenced this pull request Jun 24, 2022
Uses a trick described in
rust-lang/rust/issues#85821#issuecomment-969369677. Note that this still
allows it to run, despite there seemingly being no entry point: this has
no effect on the resulting code.

Related to cross-rs#609. Partially fixes cross-rs#839.
@Alexhuszagh Alexhuszagh added the meta issues/PRs related to the maintenance of the crate. label Nov 6, 2022
LucasFA added a commit to LucasFA/cpal that referenced this pull request Mar 12, 2024
See https://github.com/cross-rs/cross/wiki/Configuration#builddockerfile
for context regarding the $CROSS_BASE_IMAGE environment variable. Here, it
resolves to
ghcr.io/cross-rs/armv7-unknown-linux-gnueabihf:{{cross_version}}

Relies on docker caching instead of pre-building the image.

Cross made the change to the GHCR on cross-rs/cross#609

Add newline at EOF for some files.
est31 pushed a commit to RustAudio/cpal that referenced this pull request Mar 14, 2024
See https://github.com/cross-rs/cross/wiki/Configuration#builddockerfile
for context regarding the $CROSS_BASE_IMAGE environment variable. Here, it
resolves to
ghcr.io/cross-rs/armv7-unknown-linux-gnueabihf:{{cross_version}}

Relies on docker caching instead of pre-building the image.

Cross made the change to the GHCR on cross-rs/cross#609

Add newline at EOF for some files.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
meta issues/PRs related to the maintenance of the crate.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

CI can not push to DockerHub Use qualified Docker image names
9 participants