Use git-restore-mtime in action #6
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
name: Docker Image CI | |
on: | |
push: | |
branches: [ "docker-build" ] | |
pull_request: | |
branches: [ "docker-build" ] | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v3 | |
with: | |
fetch-depth: 0 | |
- name: Restore modificcation time for files | |
uses: chetan/git-restore-mtime-action@v2 | |
- name: Build the Docker image for building for Windows 64 bits | |
run: docker build . -f Dockerfile --target builder-windows-64 -t builder-w64 | |
- name: Build the Docker image for building for Windows 32 bits | |
run: docker build . -f Dockerfile --target builder-windows-32 -t builder-w32 | |
- name: Build the Docker image for building for Linux 64 bits | |
run: docker build . -f Dockerfile --target builder-linux -t builder-64 | |
- name: Build the Docker image for building for Android armv7a | |
run: docker build . -f Dockerfile --target builder-linux -t builder-64 | |
- name: Build the Docker image for building for Android armv8a | |
run: docker build . -f Dockerfile --target builder-linux -t builder-64 | |
- name: Run the Linux Docker image to build xuggler for Linux 64 bits | |
run: docker run -v ./:/xuggle-xuggler builder-64 | |
- name: Run the Linux Docker image to build xuggler for Windows 64 bits | |
run: docker run -v ./:/xuggle-xuggler builder-w64 | |
- name: Run the Linux Docker image to build xuggler for Windows 32 bits | |
run: docker run -v ./:/xuggle-xuggler builder-w32 | |