forked from paritytech/polkadot
-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'wk-221004-target-aarch64-apple-darwin' into wk-230207-a…
…arch64-v0.9.38
- Loading branch information
Showing
84 changed files
with
2,090 additions
and
1,062 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,26 @@ | ||
name: Check licenses | ||
|
||
on: | ||
pull_request: | ||
|
||
jobs: | ||
check-licenses: | ||
runs-on: ubuntu-22.04 | ||
steps: | ||
- name: Checkout sources | ||
uses: actions/checkout@v3.3.0 | ||
- uses: actions/setup-node@v3.6.0 | ||
with: | ||
node-version: '16.19.0' | ||
registry-url: 'https://npm.pkg.github.com' | ||
scope: '@paritytech' | ||
- name: Check the licenses | ||
run: | | ||
shopt -s globstar | ||
npx @paritytech/license-scanner@0.0.3 scan \ | ||
--ensure-licenses Apache-2.0 \ | ||
--ensure-licenses GPL-3.0-only \ | ||
./**/*.rs | ||
env: | ||
NODE_AUTH_TOKEN: ${{ secrets.GITHUB_TOKEN }} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,79 @@ | ||
name: Release - xbuilder | ||
|
||
on: | ||
push: | ||
tags: | ||
# Catches v1.2.3 and v1.2.3-rc1 | ||
- v[0-9]+.[0-9]+.[0-9]+* | ||
workflow_dispatch: | ||
|
||
env: | ||
# We can use the following once https://github.com/paritytech/scripts/pull/504 is merged | ||
# and the image is available | ||
# DOCKER_ORG=paritytech | ||
DOCKER_ORG: chevdor | ||
|
||
jobs: | ||
# get-rust-versions: | ||
# runs-on: ubuntu-latest | ||
# container: | ||
# image: paritytech/ci-linux:production | ||
# outputs: | ||
# rustc-stable: ${{ steps.get-rust-versions.outputs.stable }} | ||
# rustc-nightly: ${{ steps.get-rust-versions.outputs.nightly }} | ||
# steps: | ||
# - id: get-rust-versions | ||
# run: | | ||
# echo "stable=$(rustc +stable --version)" >> $GITHUB_OUTPUT | ||
# echo "nightly=$(rustc +nightly --version)" >> $GITHUB_OUTPUT | ||
|
||
xbuild: | ||
runs-on: ubuntu-latest | ||
strategy: | ||
matrix: | ||
target: [ aarch64-unknown-linux-gnu ] | ||
profile: [ production ] | ||
binary: [ polkadot ] | ||
|
||
steps: | ||
- name: Checkout sources | ||
uses: actions/checkout@v3 | ||
|
||
- name: Set env for ${{ matrix.target }} | ||
run: | | ||
image="${DOCKER_ORG}/parity-xbuilder-${{ matrix.target }}" | ||
target=${{ matrix.target }}; target=${target//-/_} | ||
echo "DOCKER_IMAGE_$target=$image" >> $GITHUB_ENV | ||
- name: Pull xbuilder image for ${{ matrix.target }} | ||
env: | ||
IMAGE_NAME_TMP: DOCKER_IMAGE_${{ matrix.target }} | ||
run: | | ||
IMAGE_NAME=${IMAGE_NAME_TMP//-/_} | ||
IMAGE=${!IMAGE_NAME} | ||
echo "image var: $IMAGE_NAME" | ||
echo "Pulling image: $IMAGE" | ||
docker pull ${IMAGE} | ||
docker images | ||
# polkadot aarch64-unknown-linux-gnu production takes around ... minutes on Github | ||
- name: Build ${{ matrix.binary }} for target ${{ matrix.target }} using profile ${{ matrix.profile }} | ||
env: | ||
IMAGE_NAME_TMP: DOCKER_IMAGE_${{ matrix.target }} | ||
run: | | ||
IMAGE_NAME=${IMAGE_NAME_TMP//-/_} | ||
IMAGE=${!IMAGE_NAME} | ||
docker run --rm --name builder \ | ||
-v $PWD:/app ${IMAGE} \ | ||
-p ${{ matrix.binary }} \ | ||
--profile ${{ matrix.profile }} | ||
ls -al ./target/${{ matrix.target }}/${{ matrix.profile }}/${{ matrix.binary }} | ||
- name: Upload ${{ matrix.binary }} / ${{ matrix.target }} / ${{ matrix.profile }} | ||
uses: actions/upload-artifact@v3 | ||
with: | ||
name: ${{ matrix.binary }}_${{ matrix.target }}_${{ matrix.profile }} | ||
path: | | ||
./target/${{ matrix.target }}/${{ matrix.profile }}/${{ matrix.binary }} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.