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

update github workload vm image #1669

Open
Masber opened this issue Dec 31, 2024 · 2 comments
Open

update github workload vm image #1669

Masber opened this issue Dec 31, 2024 · 2 comments

Comments

@Masber
Copy link

Masber commented Dec 31, 2024

Dear cargo dist community,

I am using cargo dist and need to update the vm used by github actions my pipeline from ubuntu-20.04 to ubuntu-24.04, I attempted using dist init -y and then updated the .github/workflows/release.yml without success because github would complaint about

The template is not valid. .github/workflows/release.yml (Line: 275, Col: 28): Error reading JToken from JsonReader. Path '', line 0, position 0.,.github/workflows/release.yml (Line: 276, Col: 31): Error reading JToken from JsonReader. Path '', line 0, position 0.,.github/workflows/release.yml (Line: 277, Col: 30): Error reading JToken from JsonReader. Path '', line 0, position 0.

Any idea on how could I make changes to .github/workflows/release.yml

thank you very much

@duckinator
Copy link
Contributor

Hi! Sorry for the delay, everyone was off for the holidays. 🙂

Are you still having this problem?

My understanding is you successfully ran dist init -y, manually updated release.yml, then pushed the changes to GitHub -- is that correct? If so, can you provide the modified release.yml file?

@mistydemeo
Copy link
Contributor

If you'd like to change which Linux runner builds will use, you can do that by using the custom runner feature in your config: https://opensource.axo.dev/cargo-dist/book/ci/customizing.html#custom-runners

If you do this, then dist will write out a new release.yml with the runner you selected without having to hand-edit it.

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

No branches or pull requests

3 participants