mirror of
https://github.com/bensuperpc/dockcross.git
synced 2024-12-22 16:24:27 +01:00
Commit to reverse before PR
Commit to reverse before PR Signed-off-by: Bensuperpc <bensuperpc@gmail.com>
This commit is contained in:
parent
6391acac38
commit
f2fa6d69ca
36
.github/workflows/main.yml
vendored
36
.github/workflows/main.yml
vendored
@ -14,34 +14,8 @@ on:
|
|||||||
workflow_dispatch:
|
workflow_dispatch:
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
base:
|
|
||||||
name: base
|
|
||||||
runs-on: ubuntu-latest
|
|
||||||
steps:
|
|
||||||
- uses: actions/checkout@v2
|
|
||||||
- name: build
|
|
||||||
run: make base
|
|
||||||
- name: test
|
|
||||||
run: make base.test
|
|
||||||
- name: archive base
|
|
||||||
run: |
|
|
||||||
mkdir -p cache
|
|
||||||
docker save dockcross/base:latest | xz -e9 -T0 > ./cache/base.tar.xz
|
|
||||||
- name: save base
|
|
||||||
uses: actions/upload-artifact@v2
|
|
||||||
with:
|
|
||||||
name: cache
|
|
||||||
path: ./cache
|
|
||||||
retention-days: 1
|
|
||||||
- name: deploy
|
|
||||||
if: github.ref == 'refs/heads/master'
|
|
||||||
run: |
|
|
||||||
docker login -u ${{ secrets.DOCKER_USER }} -p ${{ secrets.DOCKER_PASS }}
|
|
||||||
docker image push dockcross/base --all-tags
|
|
||||||
|
|
||||||
image:
|
image:
|
||||||
name: ${{ matrix.arch_name.image }}
|
name: ${{ matrix.arch_name.image }}
|
||||||
needs: base
|
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
strategy:
|
strategy:
|
||||||
fail-fast: false
|
fail-fast: false
|
||||||
@ -334,16 +308,6 @@ jobs:
|
|||||||
}
|
}
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v2
|
- uses: actions/checkout@v2
|
||||||
- uses: actions/download-artifact@v2
|
|
||||||
with:
|
|
||||||
name: cache
|
|
||||||
path: ./cache
|
|
||||||
- name: load base
|
|
||||||
run: xz -d -k < ./cache/base.tar.xz | docker load
|
|
||||||
- name: build
|
|
||||||
run: make ${{ matrix.arch_name.image }}
|
|
||||||
- name: basic test
|
|
||||||
run: make ${{ matrix.arch_name.image }}.test
|
|
||||||
- name: stockfish build test
|
- name: stockfish build test
|
||||||
if: ${{ matrix.arch_name.stockfish == 'yes' }}
|
if: ${{ matrix.arch_name.stockfish == 'yes' }}
|
||||||
run: |
|
run: |
|
||||||
|
Loading…
Reference in New Issue
Block a user