Skip to content

Multiple platform build using travis #165

Open

Description

@gb0101010101

Came across a repo that apparently has travis example to cross compile to "arm32 (armv8l)" for RaspberryPi, Win32/64, and Mac.
https://github.com/junaruga/ci-multi-arch-native-test/blob/master/.travis.yml

Might be of use to our build scripts.

Activity

  1. gb0101010101 commented on Jun 13, 2020

    @gb0101010101
    ContributorAuthor

    Also some code for getting SOURCE_BRANCH, SOURCE_TAG, or tag defaulting to branch (SOURCE_NAME) when building.
    https://github-community.bar.bot.cd/t/how-to-get-just-the-tag-name/16241/11

        name: Branch name
            id: branch_name
            run: |
              echo ::set-output name=SOURCE_NAME::${GITHUB_REF#refs/*/}
              echo ::set-output name=SOURCE_BRANCH::${GITHUB_REF#refs/heads/}
              echo ::set-output name=SOURCE_TAG::${GITHUB_REF#refs/tags/}
    
        name: Build base image
            run: |
              echo $SOURCE_NAME
              echo $SOURCE_BRANCH
              echo $SOURCE_TAG
            env:
              SOURCE_NAME: ${{ steps.branch_name.outputs.SOURCE_NAME }}
              SOURCE_BRANCH: ${{ steps.branch_name.outputs.SOURCE_BRANCH }}
              SOURCE_TAG: ${{ steps.branch_name.outputs.SOURCE_TAG }}
    

    This could be used to auto generate the release name in format:

    • Stable: v0.94
    • PreRelease: v0.94_20201128T134055 (yyyyMMddTHHmmss)

    I think we should have all release continue to begin with with the existing vN.NNNN format to make sure that the release manager will continue to function for people using old version. e.g. the test pre-release breaks release manager right now.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions