Skip to content

Commit

Permalink
Fixes for Github Actions (armbian#3379)
Browse files Browse the repository at this point in the history
* Update build-beta-images.yml

* Update build-kernel-on-merge-request.yml

* Update build-train.yml
  • Loading branch information
igorpecovnik committed Jan 6, 2022
1 parent 310495d commit 6bfc83b
Show file tree
Hide file tree
Showing 3 changed files with 18 additions and 22 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/build-beta-images.yml
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ jobs:
with:

variant: 'cli:beta'
runner: "ubuntu-latest"
runner: "small"
part: 1
of: 1
include: 'grep uefi-x86 | '
Expand All @@ -60,7 +60,7 @@ jobs:
with:

variant: 'cli:beta'
runner: "ubuntu-latest"
runner: "small"
part: 1
of: 1
include: ''
Expand Down
15 changes: 14 additions & 1 deletion .github/workflows/build-kernel-on-merge-request.yml
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ jobs:
with:

uploading: "true"
runner: "ubuntu-latest"
runner: "fast"
reference: ${{ github.event.pull_request.head.sha }}

secrets:
Expand All @@ -44,3 +44,16 @@ jobs:
SCRIPTS_ACCESS_TOKEN: ${{ secrets.SCRIPTS_ACCESS_TOKEN }}
KEY_TORRENTS: ${{ secrets.KEY_TORRENTS }}
KNOWN_HOSTS_UPLOAD: ${{ secrets.KNOWN_HOSTS_UPLOAD }}

jobsend:
name: Cleanup
needs: [Build]
runs-on: "small"
if: ${{ github.repository_owner == 'Armbian' }}
steps:
- uses: geekyeggo/delete-artifact@v1
with:
name: changes
- uses: geekyeggo/delete-artifact@v1
with:
name: hash
21 changes: 2 additions & 19 deletions .github/workflows/build-train.yml
Original file line number Diff line number Diff line change
Expand Up @@ -89,27 +89,10 @@ jobs:

##########################################################################################
# #
# Build board support packages #
# Build u-boot and board support packages #
# #
##########################################################################################

BSP:
needs: Kernel
if: ${{ success() && github.repository_owner == 'Armbian' }}
uses: armbian/scripts/.github/workflows/build-bsp.yml@master

with:
uploading: true

secrets:
GPG_KEY1: ${{ secrets.GPG_KEY1 }}
GPG_PASSPHRASE1: ${{ secrets.GPG_PASSPHRASE1 }}
GPG_KEY2: ${{ secrets.GPG_KEY2 }}
GPG_PASSPHRASE2: ${{ secrets.GPG_PASSPHRASE2 }}
SCRIPTS_ACCESS_TOKEN: ${{ secrets.SCRIPTS_ACCESS_TOKEN }}
KEY_TORRENTS: ${{ secrets.KEY_TORRENTS }}
KNOWN_HOSTS_UPLOAD: ${{ secrets.KNOWN_HOSTS_UPLOAD }}

legacy:
needs: Check
if: ${{ success() && github.repository_owner == 'Armbian' }}
Expand Down Expand Up @@ -181,7 +164,7 @@ jobs:
##########################################################################################

Deploy:
needs: [Kernel,Desktop,BSP,legacy,current,edge]
needs: [Kernel,Desktop,legacy,current,edge]
if: ${{ success() && github.repository_owner == 'Armbian' }}
uses: armbian/scripts/.github/workflows/deploy.yml@master

Expand Down

0 comments on commit 6bfc83b

Please sign in to comment.