Skip to content

Commit

Permalink
Update nightly.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
mcred authored Mar 21, 2023
1 parent 0f451e6 commit b3b0002
Showing 1 changed file with 1 addition and 47 deletions.
48 changes: 1 addition & 47 deletions .github/workflows/nightly.yml
Original file line number Diff line number Diff line change
Expand Up @@ -28,23 +28,6 @@ jobs:
AWS_SECRET_ACCESS_KEY: ${{ secrets.AWS_SECRET_ACCESS_KEY }}
AWS_DEFAULT_REGION: us-west-2

get_kernels_ubuntu-18:
runs-on: ubuntu-18.04
steps:
- uses: actions/checkout@v2
- uses: actions/setup-go@v2
with:
go-version: '^1.18.0'
- name: Setup GO environment
run: |
go mod download
- id: set-matrix
run: echo "::set-output name=matrix::$(go run cmd/kernels/kernels.go -l ubuntu18)"
env:
GITHUB_PAT: ${{ secrets.REPO_TOKEN }}
outputs:
matrix: ${{ steps.set-matrix.outputs.matrix }}

get_kernels_ubuntu-20:
runs-on: ubuntu-20.04
steps:
Expand All @@ -62,35 +45,6 @@ jobs:
outputs:
matrix: ${{ steps.set-matrix.outputs.matrix }}

build_kernel_ubuntu-18:
name: Build Kernel
needs: get_kernels_ubuntu-18
if: startsWith(github.ref, 'refs/heads/')
runs-on: ubuntu-18.04
strategy:
matrix:
zfs:
- 2.0.4
- 2.0.6
- 2.1.5
kernels: ${{ fromJson(needs.get_kernels_ubuntu-18.outputs.matrix) }}
steps:
- uses: actions/checkout@v1
- name: Create Kernel Build File
run: ./scripts/setup_kernel.sh
- name: Output Build File
run: cat src/$(uname -r)/uname
- name: Build
run: ./build_local.sh -b ${{ secrets.s3_url }} -k -z ${{ matrix.zfs }} -d $GITHUB_WORKSPACE -r ${{ matrix.kernels }}
env:
ZFS_VERSION: zfs-${{ matrix.zfs }}
- name: Publish
run: ./publish ${{ secrets.s3_bucket }}
env:
AWS_ACCESS_KEY_ID: ${{ secrets.AWS_ACCESS_KEY_ID }}
AWS_SECRET_ACCESS_KEY: ${{ secrets.AWS_SECRET_ACCESS_KEY }}
AWS_DEFAULT_REGION: us-west-2

build_kernel_ubuntu-20:
name: Build Kernel
needs: get_kernels_ubuntu-20
Expand All @@ -110,4 +64,4 @@ jobs:
- name: Build
run: make build S3=${{ secrets.s3_url }} ZFS=${{ matrix.zfs }} KERNEL=${{ matrix.kernels }}
- name: Publish
run: docker run -e "AWS_ACCESS_KEY_ID=${{ secrets.AWS_ACCESS_KEY_ID }}" -e "AWS_SECRET_ACCESS_KEY=${{ secrets.AWS_SECRET_ACCESS_KEY }}" -e "AWS_DEFAULT_REGION=us-west-2" zfs-builder /publish ${{ secrets.s3_bucket }}
run: docker run -e "AWS_ACCESS_KEY_ID=${{ secrets.AWS_ACCESS_KEY_ID }}" -e "AWS_SECRET_ACCESS_KEY=${{ secrets.AWS_SECRET_ACCESS_KEY }}" -e "AWS_DEFAULT_REGION=us-west-2" zfs-builder /publish ${{ secrets.s3_bucket }}

0 comments on commit b3b0002

Please sign in to comment.