Skip to content

Allow build linux client workflow task to build again#10

Open
lexiwitch wants to merge 2 commits intoMBII:masterfrom
lexiwitch:lexiwitch-actions
Open

Allow build linux client workflow task to build again#10
lexiwitch wants to merge 2 commits intoMBII:masterfrom
lexiwitch:lexiwitch-actions

Conversation

@lexiwitch
Copy link

@lexiwitch lexiwitch commented Nov 18, 2024

  • Update upload-artifact version
    Old version is deprecated and was causing build failure

  • Shift build into container
    The runner environment of ubuntu is severely neutered and attempting to use the i386 repositories immediately causes dependency hell. This resolves that by relying on the docker ubuntu 20.04 image.
    In full, the changes are:

    • Specify container to run in
      Arbitrarily chosen to be ubuntu 20.04, which is only one major version bump from the previous version you were building for.
    • Set environment variables DEBIAN_FRONTEND and TZ
      Without this change, the package installation process will wait asking for input forever (TZ because there's an indirect dependency on tzdata and it will hang waiting for a locale to be selected).
    • Mount the location of the code (github.workspace) to /data in the container
    • Alter references to github.workspace to reference the location it is mounted to in the container.

The result correctly creates build artifacts:

My bad for not opening a pull request here, had to fight with Github a bit for whatever reason!

Old version is deprecated and was causing build failure
The runner environment of ubuntu is severely neutered and attempting to
use the i386 repositories immediately causes dependency hell.

This resolves that by relying on the docker ubuntu 20.04 image.

In full, the changes are:

- Specify container to run in.
- Set environment variables `DEBIAN_FRONTEND` and `TZ`
Without this change, the package installation process will wait asking
for input forever (TZ because there's an indirect dependency on tzdata).
- Mount the location of the code (github.workspace) to /data in the
  container
- Alter references to github.workspace to reference the location it is
  mounted to in the container.
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.

1 participant