From 03a6610a5a019fe2b5f993bd9b1920632db04bbc Mon Sep 17 00:00:00 2001 From: Yatharth Sharma Date: Wed, 14 May 2025 16:07:15 +0530 Subject: [PATCH 1/4] added workflow 8 --- .github/archives/workflow_8.yml | 31 ----------- .github/workflows/workflow_8.yml | 89 ++++++++++++++++++++++++++++++++ 2 files changed, 89 insertions(+), 31 deletions(-) delete mode 100644 .github/archives/workflow_8.yml create mode 100644 .github/workflows/workflow_8.yml diff --git a/.github/archives/workflow_8.yml b/.github/archives/workflow_8.yml deleted file mode 100644 index 376b40b..0000000 --- a/.github/archives/workflow_8.yml +++ /dev/null @@ -1,31 +0,0 @@ -name: eighth_workflow - -concurrency: - group: ${{ github.workflow }} - cancel-in-progress: true - -on: - push: - -jobs: - job_A: - name: Job A - strategy: - fail-fast: false - max-parallel: 2 - matrix: - os: [ubuntu-latest, ubuntu-22.04] - user: [yatharth, alpha] - exclude: - - os: ubuntu-22.04 - user: alpha - include: - - os: ubuntu-latest - user: beta - runs-on: ${{ matrix.os }} - steps: - - name: Get system information - run: | - cat /etc/os-release - echo "OS version: ${{ runner.os }}" - echo "OS architecture: ${{ runner.arch }}" diff --git a/.github/workflows/workflow_8.yml b/.github/workflows/workflow_8.yml new file mode 100644 index 0000000..a1bc7db --- /dev/null +++ b/.github/workflows/workflow_8.yml @@ -0,0 +1,89 @@ +name: eighth_workflow + +concurrency: + group: ${{ github.workflow }} + cancel-in-progress: true + +on: + push: + +jobs: + # job_A: + # name: Job A + # # strategy: + # # fail-fast: false + # # max-parallel: 2 + # # matrix: + # # os: [ubuntu-latest, ubuntu-22.04] + # # user: [yatharth, alpha] + # # exclude: + # # - os: ubuntu-22.04 + # # user: alpha + # # include: + # # - os: ubuntu-latest + # # user: beta + # runs-on: ${{ matrix.os }} + # steps: + # - name: Get system information + # run: | + # cat /etc/os-release + # echo "OS version: ${{ runner.os }}" + # echo "OS architecture: ${{ runner.arch }}" + job_build: + name: Build + strategy: + matrix: + os: + - ubuntu-latest + - ubuntu-22.04 + lang: + - name: java + directory: java + command: gradlew build + - name: node + directory: node + command: npm install + - name: python + directory: python + command: pip install -r requirements.txt + runs-on: ${{ matrix.os }} + steps: + - name: Checkout code + uses: actions/checkout@v4 + + - name: Build with ${{ matrix.lang.name }} + run: | + mkdir -p ${{ matrix.lang.directory }} + cd ${{ matrix.lang.directory }} + echo ${{ matrix.lang.command }} + +# lang [{A}, {B}, {C}] +# os ['X', 'Y'] + + + + + # job_Java_build: + # name: java_project + # runs-on: ubuntu-latest + # steps: + # - name: Checkout code + # uses: actions/checkout@v4 + + # - name: Build with Gradle + # run: | + # cd java + # gradlew build + + # job_node_deploy: + # name: node_project + # runs-on: ubuntu-latest + # steps: + # - name: Checkout code + # uses: actions/checkout@v4 + + # - name: Install dependencies + # run: | + # cd node + # npm install + From 43a29a4fbae55807d730542d5d757535b3680b27 Mon Sep 17 00:00:00 2001 From: Yatharth Sharma Date: Wed, 14 May 2025 16:11:54 +0530 Subject: [PATCH 2/4] testing exclude --- .github/workflows/workflow_8.yml | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/.github/workflows/workflow_8.yml b/.github/workflows/workflow_8.yml index a1bc7db..18e350e 100644 --- a/.github/workflows/workflow_8.yml +++ b/.github/workflows/workflow_8.yml @@ -46,6 +46,12 @@ jobs: - name: python directory: python command: pip install -r requirements.txt + exclude: + - os: ubuntu-22.04 + lang: + name: node + directory: node + command: npm install runs-on: ${{ matrix.os }} steps: - name: Checkout code From 6ba1f1b692e8bde9d4024d63b77ef3e5d5071763 Mon Sep 17 00:00:00 2001 From: Yatharth Sharma Date: Wed, 14 May 2025 16:14:40 +0530 Subject: [PATCH 3/4] testing include --- .github/workflows/workflow_8.yml | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/.github/workflows/workflow_8.yml b/.github/workflows/workflow_8.yml index 18e350e..c3e3a22 100644 --- a/.github/workflows/workflow_8.yml +++ b/.github/workflows/workflow_8.yml @@ -52,6 +52,12 @@ jobs: name: node directory: node command: npm install + include: + - os: ubuntu-22.04 + lang: + name: php + directory: php + command: php install runs-on: ${{ matrix.os }} steps: - name: Checkout code From f5eb2d688a6a3f436063a5338f8a73672b98540f Mon Sep 17 00:00:00 2001 From: Yatharth Sharma Date: Wed, 14 May 2025 16:20:20 +0530 Subject: [PATCH 4/4] test another job with matrix --- .github/workflows/workflow_8.yml | 76 ++++++++++---------------------- 1 file changed, 24 insertions(+), 52 deletions(-) diff --git a/.github/workflows/workflow_8.yml b/.github/workflows/workflow_8.yml index c3e3a22..4a1b044 100644 --- a/.github/workflows/workflow_8.yml +++ b/.github/workflows/workflow_8.yml @@ -8,27 +8,29 @@ on: push: jobs: - # job_A: - # name: Job A - # # strategy: - # # fail-fast: false - # # max-parallel: 2 - # # matrix: - # # os: [ubuntu-latest, ubuntu-22.04] - # # user: [yatharth, alpha] - # # exclude: - # # - os: ubuntu-22.04 - # # user: alpha - # # include: - # # - os: ubuntu-latest - # # user: beta - # runs-on: ${{ matrix.os }} - # steps: - # - name: Get system information - # run: | - # cat /etc/os-release - # echo "OS version: ${{ runner.os }}" - # echo "OS architecture: ${{ runner.arch }}" + job_A: + name: Job A + strategy: + fail-fast: false + max-parallel: 2 + matrix: + os: [ubuntu-latest, ubuntu-22.04] + user: [yatharth, alpha] + exclude: + - os: ubuntu-22.04 + user: alpha + include: + - os: ubuntu-latest + user: beta + runs-on: ${{ matrix.os }} + steps: + - name: Get system information + run: | + cat /etc/os-release + echo "OS version: ${{ runner.os }}" + echo "OS architecture: ${{ runner.arch }}" + echo "${{ matrix.user }}" + job_build: name: Build strategy: @@ -68,34 +70,4 @@ jobs: mkdir -p ${{ matrix.lang.directory }} cd ${{ matrix.lang.directory }} echo ${{ matrix.lang.command }} - -# lang [{A}, {B}, {C}] -# os ['X', 'Y'] - - - - - # job_Java_build: - # name: java_project - # runs-on: ubuntu-latest - # steps: - # - name: Checkout code - # uses: actions/checkout@v4 - - # - name: Build with Gradle - # run: | - # cd java - # gradlew build - - # job_node_deploy: - # name: node_project - # runs-on: ubuntu-latest - # steps: - # - name: Checkout code - # uses: actions/checkout@v4 - - # - name: Install dependencies - # run: | - # cd node - # npm install - + \ No newline at end of file