Skip to content

Commit 0e8055e

Browse files
committed
Updated workflow files for today's requirements.
1 parent 643e193 commit 0e8055e

File tree

5 files changed

+47
-50
lines changed

5 files changed

+47
-50
lines changed

.github/workflows/build_linux.yml

Lines changed: 14 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ jobs:
1717

1818
steps:
1919
- name: Checkout repository
20-
uses: actions/checkout@v2
20+
uses: actions/checkout@v4
2121

2222
- name: Configure GIT
2323
working-directory: ${{env.GITHUB_WORKSPACE}}
@@ -28,7 +28,7 @@ jobs:
2828
git submodule update --init --recursive
2929
3030
- name: Setup python
31-
uses: actions/setup-python@v2
31+
uses: actions/setup-python@v5
3232
with:
3333
python-version: '3.x' # Version range or exact version of a Python version to use, using SemVer's version range syntax
3434
architecture: 'x64' # optional x64 or x86. Defaults to x64 if not specified
@@ -48,7 +48,8 @@ jobs:
4848
env
4949
5050
- name: Deploy 'tests not available' badge before building
51-
uses: exuanbo/actions-deploy-gist@v1
51+
#uses: exuanbo/actions-deploy-gist@v1
52+
uses: end2endzone/actions-deploy-gist@main
5253
if: github.event_name != 'pull_request'
5354
with:
5455
token: ${{ secrets.BADGES }}
@@ -72,11 +73,13 @@ jobs:
7273
run: ./ci/github/install_bin2cpp.sh
7374

7475
- name: Run unit tests
76+
id: unit_tests
7577
working-directory: ${{env.GITHUB_WORKSPACE}}
7678
shell: bash
7779
run: ./ci/github/test_script.sh
7880

7981
- name: Search unit test report file
82+
if: success() || steps.unit_tests.conclusion == 'failure'
8083
working-directory: ${{env.GITHUB_WORKSPACE}}
8184
shell: bash
8285
run: |
@@ -85,20 +88,23 @@ jobs:
8588
echo UNITTEST_REPORT_PATH=$UNITTEST_REPORT_PATH >> $GITHUB_ENV
8689
8790
- name: Create test badge
91+
if: success() || steps.unit_tests.conclusion == 'failure'
8892
working-directory: ${{env.GITHUB_WORKSPACE}}
8993
run: python ci/github/maketestbadge.py ${{env.UNITTEST_REPORT_PATH}}
9094

9195
- name: Deploy test badge to gist
92-
uses: exuanbo/actions-deploy-gist@v1
93-
if: github.event_name != 'pull_request'
96+
if: success() || steps.unit_tests.conclusion == 'failure'
97+
#uses: exuanbo/actions-deploy-gist@v1
98+
uses: end2endzone/actions-deploy-gist@main
9499
with:
95100
token: ${{ secrets.BADGES }}
96101
gist_id: 58cf6c72c08e706335337d5ef9ca48e8
97102
gist_file_name: ${{env.GIT_REPOSITORY}}.${{env.GIT_BRANCH}}.${{env.GITHUB_WORKFLOW}}.json
98103
file_path: ./badge.json
99104

100105
- name: Archive test results
101-
uses: actions/upload-artifact@v2
106+
if: success() || steps.unit_tests.conclusion == 'failure'
107+
uses: actions/[email protected]
102108
with:
103109
name: unit-test-results
104110
path: build/bin/bin2cpp_unittest.*.xml
@@ -111,7 +117,8 @@ jobs:
111117
echo BIN2CPP_VERSION=$(cat build/version)>> $GITHUB_ENV
112118
113119
- name: Archive installation packages
114-
uses: actions/upload-artifact@v2
120+
if: success() || steps.unit_tests.conclusion == 'failure'
121+
uses: actions/[email protected]
115122
with:
116123
name: Installation packages.
117124
path: build/bin2cpp-${{env.BIN2CPP_VERSION}}-*.*

.github/workflows/build_macos.yml

Lines changed: 15 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -13,11 +13,11 @@ jobs:
1313
build:
1414
# For a list of available runner types, refer to
1515
# https://help.github.com/en/actions/reference/workflow-syntax-for-github-actions#jobsjob_idruns-on
16-
runs-on: macos-10.15
16+
runs-on: macos-latest
1717

1818
steps:
1919
- name: Checkout repository
20-
uses: actions/checkout@v2
20+
uses: actions/checkout@v4
2121

2222
- name: Configure GIT
2323
working-directory: ${{env.GITHUB_WORKSPACE}}
@@ -28,7 +28,7 @@ jobs:
2828
git submodule update --init --recursive
2929
3030
- name: Setup python
31-
uses: actions/setup-python@v2
31+
uses: actions/setup-python@v5
3232
with:
3333
python-version: '3.x' # Version range or exact version of a Python version to use, using SemVer's version range syntax
3434
architecture: 'x64' # optional x64 or x86. Defaults to x64 if not specified
@@ -48,7 +48,8 @@ jobs:
4848
env
4949
5050
- name: Deploy 'tests not available' badge before building
51-
uses: exuanbo/actions-deploy-gist@v1
51+
#uses: exuanbo/actions-deploy-gist@v1
52+
uses: end2endzone/actions-deploy-gist@main
5253
if: github.event_name != 'pull_request'
5354
with:
5455
token: ${{ secrets.BADGES }}
@@ -72,11 +73,13 @@ jobs:
7273
run: ./ci/github/install_bin2cpp.sh
7374

7475
- name: Run unit tests
76+
id: unit_tests
7577
working-directory: ${{env.GITHUB_WORKSPACE}}
7678
shell: bash
7779
run: ./ci/github/test_script.sh
7880

7981
- name: Search unit test report file
82+
if: success() || steps.unit_tests.conclusion == 'failure'
8083
working-directory: ${{env.GITHUB_WORKSPACE}}
8184
shell: bash
8285
run: |
@@ -85,20 +88,23 @@ jobs:
8588
echo UNITTEST_REPORT_PATH=$UNITTEST_REPORT_PATH >> $GITHUB_ENV
8689
8790
- name: Create test badge
91+
if: success() || steps.unit_tests.conclusion == 'failure'
8892
working-directory: ${{env.GITHUB_WORKSPACE}}
8993
run: python ci/github/maketestbadge.py ${{env.UNITTEST_REPORT_PATH}}
9094

9195
- name: Deploy test badge to gist
92-
uses: exuanbo/actions-deploy-gist@v1
93-
if: github.event_name != 'pull_request'
96+
if: success() || steps.unit_tests.conclusion == 'failure'
97+
#uses: exuanbo/actions-deploy-gist@v1
98+
uses: end2endzone/actions-deploy-gist@main
9499
with:
95100
token: ${{ secrets.BADGES }}
96101
gist_id: 58cf6c72c08e706335337d5ef9ca48e8
97102
gist_file_name: ${{env.GIT_REPOSITORY}}.${{env.GIT_BRANCH}}.${{env.GITHUB_WORKFLOW}}.json
98103
file_path: ./badge.json
99104

100105
- name: Archive test results
101-
uses: actions/upload-artifact@v2
106+
if: success() || steps.unit_tests.conclusion == 'failure'
107+
uses: actions/[email protected]
102108
with:
103109
name: unit-test-results
104110
path: build/bin/bin2cpp_unittest.*.xml
@@ -111,7 +117,8 @@ jobs:
111117
echo BIN2CPP_VERSION=$(cat build/version)>> $GITHUB_ENV
112118
113119
- name: Archive installation packages
114-
uses: actions/upload-artifact@v2
120+
if: success() || steps.unit_tests.conclusion == 'failure'
121+
uses: actions/[email protected]
115122
with:
116123
name: Installation packages.
117124
path: build/bin2cpp-${{env.BIN2CPP_VERSION}}-*.*

.github/workflows/build_windows.yml

Lines changed: 15 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ name: Windows
33
on: [push, pull_request]
44

55
env:
6-
PlatformToolset: v140
6+
PlatformToolset: v142
77

88
# build platform, i.e. x86, x64, Any CPU. This setting is optional.
99
Platform: x64
@@ -19,7 +19,7 @@ jobs:
1919

2020
steps:
2121
- name: Checkout repository
22-
uses: actions/checkout@v2
22+
uses: actions/checkout@v4
2323

2424
- name: Configure GIT
2525
working-directory: ${{env.GITHUB_WORKSPACE}}
@@ -30,7 +30,7 @@ jobs:
3030
git submodule update --init --recursive
3131
3232
- name: Setup python
33-
uses: actions/setup-python@v2
33+
uses: actions/setup-python@v5
3434
with:
3535
python-version: '3.x' # Version range or exact version of a Python version to use, using SemVer's version range syntax
3636
architecture: 'x64' # optional x64 or x86. Defaults to x64 if not specified
@@ -50,7 +50,8 @@ jobs:
5050
set
5151
5252
- name: Deploy 'tests not available' badge before building
53-
uses: exuanbo/actions-deploy-gist@v1
53+
#uses: exuanbo/actions-deploy-gist@v1
54+
uses: end2endzone/actions-deploy-gist@main
5455
if: github.event_name != 'pull_request'
5556
with:
5657
token: ${{ secrets.BADGES }}
@@ -74,11 +75,13 @@ jobs:
7475
run: call ci\github\install_bin2cpp.bat
7576

7677
- name: Run unit tests
78+
id: unit_tests
7779
working-directory: ${{env.GITHUB_WORKSPACE}}
7880
shell: cmd
7981
run: call ci\github\test_script.bat
8082

8183
- name: Search unit test report file
84+
if: success() || steps.unit_tests.conclusion == 'failure'
8285
working-directory: ${{env.GITHUB_WORKSPACE}}
8386
shell: cmd
8487
run: |
@@ -87,20 +90,23 @@ jobs:
8790
echo UNITTEST_REPORT_PATH=%UNITTEST_REPORT_PATH%>> %GITHUB_ENV%
8891
8992
- name: Create test badge
93+
if: success() || steps.unit_tests.conclusion == 'failure'
9094
working-directory: ${{env.GITHUB_WORKSPACE}}
9195
run: python ci\github\maketestbadge.py ${{env.UNITTEST_REPORT_PATH}}
9296

9397
- name: Deploy test badge to gist
94-
uses: exuanbo/actions-deploy-gist@v1
95-
if: github.event_name != 'pull_request'
98+
if: success() || steps.unit_tests.conclusion == 'failure'
99+
#uses: exuanbo/actions-deploy-gist@v1
100+
uses: end2endzone/actions-deploy-gist@main
96101
with:
97102
token: ${{ secrets.BADGES }}
98103
gist_id: 58cf6c72c08e706335337d5ef9ca48e8
99104
gist_file_name: ${{env.GIT_REPOSITORY}}.${{env.GIT_BRANCH}}.${{env.GITHUB_WORKFLOW}}.json
100105
file_path: ./badge.json
101106

102107
- name: Archive test results
103-
uses: actions/upload-artifact@v2
108+
if: success() || steps.unit_tests.conclusion == 'failure'
109+
uses: actions/[email protected]
104110
with:
105111
name: unit-test-results
106112
path: build\bin\${{env.Configuration}}\bin2cpp_unittest.*.xml
@@ -114,7 +120,8 @@ jobs:
114120
echo BIN2CPP_VERSION=%BIN2CPP_VERSION%>> %GITHUB_ENV%
115121
116122
- name: Archive installation packages
117-
uses: actions/upload-artifact@v2
123+
if: success() || steps.unit_tests.conclusion == 'failure'
124+
uses: actions/[email protected]
118125
with:
119126
name: Installation packages.
120127
path: build/bin2cpp-${{env.BIN2CPP_VERSION}}-*.*

.travis.yml

Lines changed: 0 additions & 24 deletions
This file was deleted.

appveyor.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,7 @@ version: "{branch} (#{build})"
1717
branches:
1818
only:
1919
- master
20+
- /feature-issue.*/
2021

2122
# Do not build on tags (GitHub and BitBucket)
2223
skip_tags: true
@@ -26,7 +27,7 @@ skip_tags: true
2627
#---------------------------------#
2728

2829
# Build worker image (VM template)
29-
image: Visual Studio 2015
30+
image: Visual Studio 2019
3031

3132
# scripts that are called at very beginning, before repo cloning
3233
init:
@@ -38,15 +39,14 @@ clone_folder: c:\projects\bin2cpp
3839

3940
# scripts that run after cloning repository
4041
install:
41-
- cmd: echo INSTALL!
4242
- cmd: git submodule update --init --recursive
4343

4444
#---------------------------------#
4545
# build configuration #
4646
#---------------------------------#
4747

4848
environment:
49-
PlatformToolset: v140
49+
PlatformToolset: v142
5050

5151
# build platform, i.e. x86, x64, Any CPU. This setting is optional.
5252
Platform: x64

0 commit comments

Comments
 (0)