Update git action and crosstool-ng

This commit is contained in:
Bensuperpc 2021-05-14 17:14:22 +02:00
parent c7fcae512e
commit f6eb0cb349
2 changed files with 8 additions and 7 deletions

View File

@ -11,7 +11,8 @@ on:
pull_request: pull_request:
branches: branches:
- '*' - '*'
schedule:
- cron: '0 7 * * 2' # every tuesday at 7:00 https://crontab.guru/#0_7_*_*_1
jobs: jobs:
base: base:
name: base name: base
@ -25,7 +26,7 @@ jobs:
- name: archive base - name: archive base
run: | run: |
mkdir -p cache mkdir -p cache
docker save -o ./cache/base.tar dockcross/base:latest docker save -o ./cache/base.tar bensuperpc/base:latest
- name: save base - name: save base
uses: actions/upload-artifact@v2 uses: actions/upload-artifact@v2
with: with:
@ -36,7 +37,7 @@ jobs:
if: github.ref == 'refs/heads/master' if: github.ref == 'refs/heads/master'
run: | run: |
docker login -u ${{ secrets.DOCKER_USER }} -p ${{ secrets.DOCKER_PASS }} docker login -u ${{ secrets.DOCKER_USER }} -p ${{ secrets.DOCKER_PASS }}
docker image push dockcross/base docker image push bensuperpc/base
image: image:
name: ${{ matrix.arch_name }} name: ${{ matrix.arch_name }}
@ -64,7 +65,7 @@ jobs:
if: github.ref == 'refs/heads/master' if: github.ref == 'refs/heads/master'
run: | run: |
docker login -u ${{ secrets.DOCKER_USER }} -p ${{ secrets.DOCKER_PASS }} docker login -u ${{ secrets.DOCKER_USER }} -p ${{ secrets.DOCKER_PASS }}
docker image push dockcross/${{ matrix.arch_name }} docker image push bensuperpc/${{ matrix.arch_name }}
# Docker images need to remove after deploy or tests, not enough memory to build all images on github action (14 GB of SSD) # Docker images need to remove after deploy or tests, not enough memory to build all images on github action (14 GB of SSD)
- name: clean - name: clean
run: docker image rm -f dockcross/${{ matrix.arch_name }} run: docker image rm -f bensuperpc/${{ matrix.arch_name }}

View File

@ -66,11 +66,11 @@ cd "${CTNG}"
# Download and install the "crosstool-ng" source. # Download and install the "crosstool-ng" source.
# crosstool-ng master 2021-05-12 # crosstool-ng master 2021-05-12
COMMIT=f9716e8b9042eb14de85320987300aab99300df5 #COMMIT=f9716e8b9042eb14de85320987300aab99300df5
git clone https://github.com/crosstool-ng/crosstool-ng.git git clone https://github.com/crosstool-ng/crosstool-ng.git
cd "crosstool-ng" cd "crosstool-ng"
git checkout ${COMMIT} #git checkout ${COMMIT}
# Bootstrap and install the tool. # Bootstrap and install the tool.
BOOTSTRAP_PREFIX="${CTNG}/prefix" BOOTSTRAP_PREFIX="${CTNG}/prefix"