diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index 37bd8e2..fb901c3 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -10,17 +10,18 @@ jobs: runs-on: windows-latest steps: - uses: actions/checkout@v2 + - name: Add msbuild to PATH + uses: microsoft/setup-msbuild@v2 + - name: Build app for release + run: msbuild -t:build -property:Configuration=Release -property:Platform=x64 - name: TICS Action Run - uses: tiobe/tics-github-action@main - env: - GITHUB_TOKEN: ${{secrets.GITHUB_TOKEN}} - TICSAUTHTOKEN: 'MmQ0NTRjZmEtZTY0ZC00N2NiLWI0M2YtYzgxOWY2MzEyNGUyOk54LE4vcG9ZKFp7TFlzWg' + uses: tiobe/tics-github-action@v3 with: - projectName: 'cpp-game-git' - branchName: 'trunk' - ticsConfiguration: 'https://testlab.tiobe.com/tiobeweb/testlab/api/cfg?name=testlab_windows' - calc: 'CS,GATE' - clientToken: 'MmQ0NTRjZmEtZTY0ZC00N2NiLWI0M2YtYzgxOWY2MzEyNGUyOk54LE4vcG9ZKFp7TFlzWg' + project: 'cpp-game-git' + branchname: 'main' + ticsAuthToken: ${{secrets.TESTLAB_VIEWER}} + viewerUrl: 'https://testlab.tiobe.com/tiobeweb/testlab/api/cfg?name=default' + calc: 'CS' installTics: true diff --git a/cpp-game-vs/game.cpp b/cpp-game-vs/game.cpp index 1c522f8..c6678c1 100644 --- a/cpp-game-vs/game.cpp +++ b/cpp-game-vs/game.cpp @@ -8,6 +8,8 @@ #include #include +#define LOCAL_TRACE_INT(x, y) x << y + Rule::Choice Global::mapping_choice(int choice) { std::map table = { {1, Rule::Choice::PAPER}, @@ -160,3 +162,4 @@ void Assets::scissor_sign() { std::cout << "__________$" << std::endl; } +