Skip to content

Commit

Permalink
Merge branch 'wk-221004-target-aarch64-apple-darwin' into wk-230207-a…
Browse files Browse the repository at this point in the history
…arch64-v0.9.38
  • Loading branch information
chevdor committed Feb 7, 2023
2 parents 2110ced + 09625b5 commit 0cd8e6c
Show file tree
Hide file tree
Showing 84 changed files with 2,090 additions and 1,062 deletions.
4 changes: 2 additions & 2 deletions .github/dependabot.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ version: 2
updates:
- package-ecosystem: "cargo"
directory: "/"
labels: ["A2-insubstantial", "B0-silent", "C1-low 📌"]
labels: ["A2-insubstantial", "B0-silent", "C1-low", "E2-dependencies"]
# Handle updates for crates from github.com/paritytech/substrate manually.
ignore:
- dependency-name: "substrate-*"
Expand All @@ -21,6 +21,6 @@ updates:
interval: "daily"
- package-ecosystem: github-actions
directory: '/'
labels: ["A2-insubstantial", "B0-silent", "C1-low 📌", "E2-dependencies"]
labels: ["A2-insubstantial", "B0-silent", "C1-low", "E2-dependencies"]
schedule:
interval: daily
26 changes: 26 additions & 0 deletions .github/workflows/check-licenses.yml
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 }}
79 changes: 79 additions & 0 deletions .github/workflows/release-31_xbuilder.yml
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 }}
2 changes: 1 addition & 1 deletion .github/workflows/release-99_bot.yml
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ jobs:
- name: 'Ledger <> Polkadot Coordination'
room: '!EoIhaKfGPmFOBrNSHT:web3.foundation'
pre-release: true

runs-on: ubuntu-latest
steps:
- name: Send Matrix message to ${{ matrix.channel.name }}
Expand Down
Loading

0 comments on commit 0cd8e6c

Please sign in to comment.