Skip to content

Commit

Permalink
CI: Run gen-workflows for snapcraft
Browse files Browse the repository at this point in the history
Signed-off-by: Daniel Silverstone <dsilvers@digital-scurf.org>
  • Loading branch information
kinnison committed Jan 10, 2020
1 parent 7a4b693 commit 37a0191
Show file tree
Hide file tree
Showing 3 changed files with 45 additions and 0 deletions.
14 changes: 14 additions & 0 deletions .github/workflows/linux-builds-on-master.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,11 @@ jobs:
include:
- target: x86_64-unknown-linux-gnu
run_tests: YES
snap_arch: amd64
- target: aarch64-unknown-linux-gnu # skip-pr
snap_arch: arm64 # skip-pr
- target: armv7-unknown-linux-gnueabihf
snap_arch: armhf
steps:
- uses: actions/checkout@v2
with:
Expand Down Expand Up @@ -130,6 +135,15 @@ jobs:
AWS_ACCESS_KEY_ID: ${{ secrets.AWS_ACCESS_KEY_ID }}
AWS_SECRET_ACCESS_KEY: ${{ secrets.AWS_SECRET_ACCESS_KEY }}
if: github.event_name == 'push' && github.ref == 'refs/heads/stable'
- name: Build a snapcraft configuration file
run: |
export DO_SNAP=1
export SNAP_ARCH=${{ matrix.snap_arch }}
export SNAP_EDGE=1 # skip-stable
sh ci/snapcraft.sh
if: matrix.snap_arch != ''
- uses: jhenstridge/snapcraft-build-action@v1
if: matrix.snap_arch != ''
- name: Clear the cargo caches
run: |
cargo install cargo-cache --no-default-features --features ci-autoclean
Expand Down
12 changes: 12 additions & 0 deletions .github/workflows/linux-builds-on-pr.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,9 @@ jobs:
include:
- target: x86_64-unknown-linux-gnu
run_tests: YES
snap_arch: amd64
- target: armv7-unknown-linux-gnueabihf
snap_arch: armhf
steps:
- uses: actions/checkout@v2
with:
Expand Down Expand Up @@ -125,6 +128,15 @@ jobs:
AWS_ACCESS_KEY_ID: ${{ secrets.AWS_ACCESS_KEY_ID }}
AWS_SECRET_ACCESS_KEY: ${{ secrets.AWS_SECRET_ACCESS_KEY }}
if: github.event_name == 'push' && github.ref == 'refs/heads/stable'
- name: Build a snapcraft configuration file
run: |
export DO_SNAP=1
export SNAP_ARCH=${{ matrix.snap_arch }}
export SNAP_EDGE=1 # skip-stable
sh ci/snapcraft.sh
if: matrix.snap_arch != ''
- uses: jhenstridge/snapcraft-build-action@v1
if: matrix.snap_arch != ''
- name: Clear the cargo caches
run: |
cargo install cargo-cache --no-default-features --features ci-autoclean
Expand Down
19 changes: 19 additions & 0 deletions .github/workflows/linux-builds-on-stable.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,17 @@ jobs:
include:
- target: x86_64-unknown-linux-gnu
run_tests: YES
snap_arch: amd64
- target: i686-unknown-linux-gnu # skip-pr skip-master
snap_arch: i386 # skip-pr skip-master
- target: aarch64-unknown-linux-gnu # skip-pr
snap_arch: arm64 # skip-pr
- target: armv7-unknown-linux-gnueabihf
snap_arch: armhf
- target: powerpc64le-unknown-linux-gnu # skip-pr skip-master
snap_arch: ppc64el # skip-pr skip-master
- target: s390x-unknown-linux-gnu # skip-pr skip-master
snap_arch: s390x # skip-pr skip-master
steps:
- uses: actions/checkout@v2
with:
Expand Down Expand Up @@ -144,6 +155,14 @@ jobs:
AWS_ACCESS_KEY_ID: ${{ secrets.AWS_ACCESS_KEY_ID }}
AWS_SECRET_ACCESS_KEY: ${{ secrets.AWS_SECRET_ACCESS_KEY }}
if: github.event_name == 'push' && github.ref == 'refs/heads/stable'
- name: Build a snapcraft configuration file
run: |
export DO_SNAP=1
export SNAP_ARCH=${{ matrix.snap_arch }}
sh ci/snapcraft.sh
if: matrix.snap_arch != ''
- uses: jhenstridge/snapcraft-build-action@v1
if: matrix.snap_arch != ''
- name: Clear the cargo caches
run: |
cargo install cargo-cache --no-default-features --features ci-autoclean
Expand Down

0 comments on commit 37a0191

Please sign in to comment.