-
Notifications
You must be signed in to change notification settings - Fork 34
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #78 from NucciTheBoss/add-github-ci
Drop Travis CI and replace with GitHub Actions
- Loading branch information
Showing
2 changed files
with
54 additions
and
47 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,54 @@ | ||
name: CirrOS image builder | ||
|
||
on: | ||
push: | ||
branches: | ||
- master | ||
pull_request: | ||
branches: | ||
- master | ||
|
||
jobs: | ||
cirros-build-matrix: | ||
strategy: | ||
matrix: | ||
# i386, powerpc, and ppc64 will be dropped in CirrOS 0.6.x | ||
arch: [aarch64, arm, i386, x86_64, powerpc, ppc64, ppc64le] | ||
|
||
runs-on: ubuntu-20.04 | ||
|
||
env: | ||
ARCHES: ${{ matrix.arch }} | ||
BOOTTEST: "true" | ||
QUIET: 1 | ||
|
||
steps: | ||
- name: Pull cirros source artifacts | ||
uses: actions/checkout@v3 | ||
|
||
- name: Cache download | ||
uses: actions/cache@v3 | ||
with: | ||
key: downloads-${{ matrix.arch }}-${{ hashFiles('bin/build-release') }} | ||
path: download/ | ||
|
||
- name: Cache ccache | ||
uses: actions/cache@v3 | ||
with: | ||
key: ccache-${{ matrix.arch }}-${{ hashFiles('bin/build-release') }} | ||
path: ccache/ | ||
|
||
- name: Prepare job environment | ||
run: bin/system-setup | ||
|
||
- name: Install job dependencies | ||
run: sudo apt-get install cloud-utils qemu-system openbios-ppc | ||
|
||
- name: Build cirros image | ||
run: bin/build-release daily | ||
|
||
- name: Upload build artifacts | ||
uses: actions/upload-artifact@v3 | ||
with: | ||
name: cirros-${{ matrix.arch }} | ||
path: release/ |
This file was deleted.
Oops, something went wrong.