We need an intel macos image #66
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: Validate for linux | |
on: | |
push: | |
branches: [ master ] | |
pull_request: | |
branches: [ master ] | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
if: "!contains(github.event.head_commit.message, '[skip_build]')" | |
steps: | |
- uses: actions/checkout@v2 | |
- name: Build | |
run: | | |
docker build -f Dockerfile -t temp/sqloci:1.0 . | |
cd /tmp && mkdir bin | |
cd /tmp/bin | |
mkdir bin_with_orcl bin_wo bin_with_orcl_wver bin_wo_wver | |
docker create -ti --name sqloci temp/sqloci:1.0 bash | |
docker cp sqloci:/root/go/src/sqldiffer/bin_with_orcl/schema_gen bin_with_orcl/ | |
docker cp sqloci:/root/go/src/sqldiffer/bin_with_orcl/diff_gen bin_with_orcl/ | |
docker cp sqloci:/root/go/src/sqldiffer/bin_wo/schema_gen bin_wo/ | |
docker cp sqloci:/root/go/src/sqldiffer/bin_wo/diff_gen bin_wo/ | |
docker cp sqloci:/root/go/src/sqldiffer/bin_with_orcl_wver/schema_gen.exe bin_with_orcl_wver/ | |
docker cp sqloci:/root/go/src/sqldiffer/bin_with_orcl_wver/diff_gen.exe bin_with_orcl_wver/ | |
docker cp sqloci:/root/go/src/sqldiffer/bin_wo_wver/schema_gen.exe bin_wo_wver/ | |
docker cp sqloci:/root/go/src/sqldiffer/bin_wo_wver/diff_gen.exe bin_wo_wver/ | |
ls -ltr /tmp/bin |