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

Multiple platform build using travis #165

Open
gb0101010101 opened this issue Jun 13, 2020 · 1 comment
Open

Multiple platform build using travis #165

gb0101010101 opened this issue Jun 13, 2020 · 1 comment
Labels
enhancement New feature or request

Comments

@gb0101010101
Copy link
Contributor

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.

@gb0101010101 gb0101010101 added the enhancement New feature or request label Jun 13, 2020
@gb0101010101
Copy link
Contributor Author

Also some code for getting SOURCE_BRANCH, SOURCE_TAG, or tag defaulting to branch (SOURCE_NAME) when building.
https://github.community/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
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant