From 880fc4b811204d7fea5f9cb6f74db606ae913722 Mon Sep 17 00:00:00 2001 From: Dmitry Borisov Date: Mon, 18 Oct 2021 02:43:31 +0300 Subject: [PATCH 1/4] Add ize build on push --- .github/workflows/build_on_push.yml | 59 +++++++++++++++++++++++++++++ 1 file changed, 59 insertions(+) create mode 100644 .github/workflows/build_on_push.yml diff --git a/.github/workflows/build_on_push.yml b/.github/workflows/build_on_push.yml new file mode 100644 index 00000000..daebcc8b --- /dev/null +++ b/.github/workflows/build_on_push.yml @@ -0,0 +1,59 @@ +name: "Build IZE on push" + +on: + push: + branches: + - main + workflow_dispatch: + +jobs: + Ubuntu: + runs-on: ubuntu-latest + steps: + - name: Install Go + uses: actions/setup-go@v2 + with: + go-version: 1.16.x + - name: Checkout code + uses: actions/checkout@v2 + - name: Build + run: go build -o ./ize ./cmd + - name: Upload bin to artifacts + uses: actions/upload-artifact@v1 + with: + name: ize-ubuntu + path: ize + + MacOS: + runs-on: macos-latest + steps: + - name: Install Go + uses: actions/setup-go@v2 + with: + go-version: 1.16.x + - name: Checkout code + uses: actions/checkout@v2 + - name: Build + run: go build -o ./ize ./cmd + - name: Upload bin to artifacts + uses: actions/upload-artifact@v1 + with: + name: ize-mac + path: ize + + Windows: + runs-on: windows-latest + steps: + - name: Install Go + uses: actions/setup-go@v2 + with: + go-version: 1.16.x + - name: Checkout code + uses: actions/checkout@v2 + - name: Build + run: go build -o ./ize.exe ./cmd + - name: Upload bin to artifacts + uses: actions/upload-artifact@v1 + with: + name: ize.exe + path: ize.exe From 808281cb4eeda1ad55ee5a1e67908d32cfa540e3 Mon Sep 17 00:00:00 2001 From: Dmitry Borisov Date: Mon, 18 Oct 2021 18:09:18 +0300 Subject: [PATCH 2/4] Add ize build on push 2 --- .github/workflows/build_on_push.yml | 46 +++++------------------------ 1 file changed, 7 insertions(+), 39 deletions(-) diff --git a/.github/workflows/build_on_push.yml b/.github/workflows/build_on_push.yml index daebcc8b..0d4ebcb1 100644 --- a/.github/workflows/build_on_push.yml +++ b/.github/workflows/build_on_push.yml @@ -1,14 +1,15 @@ name: "Build IZE on push" - on: push: branches: - main workflow_dispatch: - jobs: - Ubuntu: - runs-on: ubuntu-latest + Build: + strategy: + matrix: + os: [ubuntu-latest, macos-latest, windows-latest] + runs-on: ${{ matrix.os }} steps: - name: Install Go uses: actions/setup-go@v2 @@ -21,39 +22,6 @@ jobs: - name: Upload bin to artifacts uses: actions/upload-artifact@v1 with: - name: ize-ubuntu + name: ${{ runner.os }} path: ize - - MacOS: - runs-on: macos-latest - steps: - - name: Install Go - uses: actions/setup-go@v2 - with: - go-version: 1.16.x - - name: Checkout code - uses: actions/checkout@v2 - - name: Build - run: go build -o ./ize ./cmd - - name: Upload bin to artifacts - uses: actions/upload-artifact@v1 - with: - name: ize-mac - path: ize - - Windows: - runs-on: windows-latest - steps: - - name: Install Go - uses: actions/setup-go@v2 - with: - go-version: 1.16.x - - name: Checkout code - uses: actions/checkout@v2 - - name: Build - run: go build -o ./ize.exe ./cmd - - name: Upload bin to artifacts - uses: actions/upload-artifact@v1 - with: - name: ize.exe - path: ize.exe + \ No newline at end of file From 583c1ce130d00e4e4db124208214fbd6800c8e0f Mon Sep 17 00:00:00 2001 From: Dmitry Borisov Date: Mon, 18 Oct 2021 18:35:42 +0300 Subject: [PATCH 3/4] Add ize build on push 2 --- .github/workflows/build_on_push.yml | 1 - 1 file changed, 1 deletion(-) diff --git a/.github/workflows/build_on_push.yml b/.github/workflows/build_on_push.yml index 0d4ebcb1..91997e01 100644 --- a/.github/workflows/build_on_push.yml +++ b/.github/workflows/build_on_push.yml @@ -24,4 +24,3 @@ jobs: with: name: ${{ runner.os }} path: ize - \ No newline at end of file From 00b3f32790852a771450c5dc33dc1b730cec07ab Mon Sep 17 00:00:00 2001 From: Dmitry Borisov Date: Mon, 18 Oct 2021 18:36:16 +0300 Subject: [PATCH 4/4] Add ize build on push 3 --- .github/workflows/build_on_push.yml | 1 + 1 file changed, 1 insertion(+) diff --git a/.github/workflows/build_on_push.yml b/.github/workflows/build_on_push.yml index 91997e01..30b3d4f0 100644 --- a/.github/workflows/build_on_push.yml +++ b/.github/workflows/build_on_push.yml @@ -24,3 +24,4 @@ jobs: with: name: ${{ runner.os }} path: ize +