From c72d4546edbc628489cafd8ef0c797329388d445 Mon Sep 17 00:00:00 2001 From: Alfi Maulana Date: Fri, 13 Jan 2023 20:54:39 +0700 Subject: [PATCH 1/3] remove `use-action-with-specified-targets` job --- .github/workflows/test.yml | 15 --------------- 1 file changed, 15 deletions(-) diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index efc58fd..b12f53f 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -39,21 +39,6 @@ jobs: - name: Check if the default build directory does not exist run: test ! -d build - use-action-with-specified-targets: - runs-on: ubuntu-latest - steps: - - name: Checkout repository - uses: actions/checkout@v3.3.0 - - - name: Use this action with specified targets - uses: ./ - with: - source-dir: test - targets: test_c test_cpp - - - name: Run build result - run: build/test_c && build/test_cpp - use-action-with-specified-compiler: runs-on: ${{ matrix.os }} strategy: From be74c742c584bc5b71e3cdb4635a1f2c72a37e90 Mon Sep 17 00:00:00 2001 From: Alfi Maulana Date: Fri, 13 Jan 2023 20:56:47 +0700 Subject: [PATCH 2/3] remove `-latex` suffix in the matrix os strategy --- .github/workflows/test.yml | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index b12f53f..6c42d3e 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -4,10 +4,10 @@ on: push: jobs: use-action: - runs-on: ${{ matrix.os }} + runs-on: ${{ matrix.os }}-latest strategy: matrix: - os: [windows-latest, ubuntu-latest, macos-latest] + os: [windows, ubuntu, macos] steps: - name: Checkout repository uses: actions/checkout@v3.3.0 @@ -19,7 +19,7 @@ jobs: uses: ./ - name: Run build result - run: ${{ matrix.os == 'windows-latest' && 'build\Debug\hello_world.exe' || 'build/hello_world' }} + run: ${{ matrix.os == 'windows' && 'build\Debug\hello_world.exe' || 'build/hello_world' }} use-action-with-specified-dir: runs-on: ubuntu-latest @@ -40,10 +40,10 @@ jobs: run: test ! -d build use-action-with-specified-compiler: - runs-on: ${{ matrix.os }} + runs-on: ${{ matrix.os }}-latest strategy: matrix: - os: [windows-latest, ubuntu-latest, macos-latest] + os: [windows, ubuntu, macos] steps: - name: Checkout repository uses: actions/checkout@v3.3.0 @@ -62,10 +62,10 @@ jobs: run: build/test_c && build/test_cpp use-action-with-specified-generator: - runs-on: ${{ matrix.os }} + runs-on: ${{ matrix.os }}-latest strategy: matrix: - os: [windows-latest, ubuntu-latest, macos-latest] + os: [windows, ubuntu, macos] steps: - name: Checkout repository uses: actions/checkout@v3.3.0 From ec0ec4113ccff1739ac82a83cceed5f63194316a Mon Sep 17 00:00:00 2001 From: Alfi Maulana Date: Fri, 13 Jan 2023 21:02:16 +0700 Subject: [PATCH 3/3] rename jobs in `test.yml` workflow --- .github/workflows/test.yml | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index 6c42d3e..b35b240 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -3,7 +3,7 @@ on: workflow_dispatch: push: jobs: - use-action: + default-usage: runs-on: ${{ matrix.os }}-latest strategy: matrix: @@ -21,7 +21,7 @@ jobs: - name: Run build result run: ${{ matrix.os == 'windows' && 'build\Debug\hello_world.exe' || 'build/hello_world' }} - use-action-with-specified-dir: + specified-dir-usage: runs-on: ubuntu-latest steps: - name: Checkout repository @@ -39,7 +39,7 @@ jobs: - name: Check if the default build directory does not exist run: test ! -d build - use-action-with-specified-compiler: + specified-compiler-usage: runs-on: ${{ matrix.os }}-latest strategy: matrix: @@ -61,7 +61,7 @@ jobs: - name: Run build result run: build/test_c && build/test_cpp - use-action-with-specified-generator: + specified-generator-usage: runs-on: ${{ matrix.os }}-latest strategy: matrix: