From 5b9c82a1806e2c498da096c99caa174ac5f1ad2f Mon Sep 17 00:00:00 2001 From: dhruveshb-mecha Date: Sat, 5 Oct 2024 02:06:41 -0400 Subject: [PATCH 1/2] ci: developer environmnet added --- .github/workflows/README.md | 21 +++++++++++++++++++++ .github/workflows/macOs-12.yml | 30 ++++++++++++++++++++++++++++++ .github/workflows/macOs-13.yml | 30 ++++++++++++++++++++++++++++++ .github/workflows/macOs-14.yml | 30 ++++++++++++++++++++++++++++++ .github/workflows/ubuntu-20.04.yml | 30 ++++++++++++++++++++++++++++++ .github/workflows/ubuntu-22.04.yml | 30 ++++++++++++++++++++++++++++++ .github/workflows/windows-2019.yml | 30 ++++++++++++++++++++++++++++++ 7 files changed, 201 insertions(+) create mode 100644 .github/workflows/README.md create mode 100644 .github/workflows/macOs-12.yml create mode 100644 .github/workflows/macOs-13.yml create mode 100644 .github/workflows/macOs-14.yml create mode 100644 .github/workflows/ubuntu-20.04.yml create mode 100644 .github/workflows/ubuntu-22.04.yml create mode 100644 .github/workflows/windows-2019.yml diff --git a/.github/workflows/README.md b/.github/workflows/README.md new file mode 100644 index 00000000..09c941a9 --- /dev/null +++ b/.github/workflows/README.md @@ -0,0 +1,21 @@ +### How to use Development environment + +1. Go To Action tabs of The page +2. Select Any runner you want to run +![Screenshot 2024-10-05 at 12 20 40 AM](https://github.com/user-attachments/assets/8106b2e8-c30b-4a04-ab54-8cd911abb294) +3. Run the selected Workflow with tmate debug mode enable to get ssh for that runner +![Screenshot 2024-10-05 at 12 22 37 AM](https://github.com/user-attachments/assets/5e0d28af-1649-471b-b9b0-478ef094fafa) +4. Refresh the page so The cureent Running workflow will be visible +![Screenshot 2024-10-05 at 12 26 25 AM](https://github.com/user-attachments/assets/6d26cca2-75ab-4b00-95e6-c391503dffa8) +5. select that workflow +6. Observe the build process, Wait till we go to tmate action +7. In action look for ssh key +![Screenshot 2024-10-05 at 12 23 45 AM](https://github.com/user-attachments/assets/e2addb82-612a-4158-8370-f85ae195aa92) +8. Copy that ssh key and pest it on your terminal +![Screenshot 2024-10-05 at 12 24 06 AM](https://github.com/user-attachments/assets/bbff1a6b-37b8-4e2a-900c-70327e9f6d6c) +9. When popup open from tmate press ctrl + C to get actual terminal of system +![Screenshot 2024-10-05 at 12 24 20 AM](https://github.com/user-attachments/assets/8c7489eb-b43e-47a7-a653-c52e2fa11161) +10. Now you can use Host system +![Screenshot 2024-10-05 at 12 25 20 AM](https://github.com/user-attachments/assets/fe200c1e-49ff-44d8-9b1c-dcd3843640c7) +11. mfg-tool is there in root dir itself and system has already RUST 1.74 installed +![Screenshot 2024-10-05 at 12 25 35 AM](https://github.com/user-attachments/assets/6bc362a0-ffe6-4c45-9950-d5edcc45bac8) diff --git a/.github/workflows/macOs-12.yml b/.github/workflows/macOs-12.yml new file mode 100644 index 00000000..9cae5730 --- /dev/null +++ b/.github/workflows/macOs-12.yml @@ -0,0 +1,30 @@ +name: macOS-12 Development Environment + +on: + push: + workflow_dispatch: + inputs: + debug_enabled: + type: boolean + description: 'Run the build with tmate debugging enabled (https://github.com/marketplace/actions/debugging-with-tmate)' + required: false + default: false + +jobs: + build: + runs-on: macos-12 # This uses GitHub's hosted macOS runner + steps: + - uses: actions/checkout@v2 + - name: Clone mfgtools repository + run: git clone https://github.com/shoaibmerchant/mfgtools.git + + - name: Install Rust 1.74 + run: | + curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh -s -- -y --default-toolchain 1.74.0 + echo "$HOME/.cargo/bin" >> $GITHUB_PATH + + - name: Setup tmate session + uses: mxschmitt/action-tmate@v3 + with: + limit-access-to-actor: false + if: ${{ github.event_name == 'workflow_dispatch' && github.event.inputs.debug_enabled }} diff --git a/.github/workflows/macOs-13.yml b/.github/workflows/macOs-13.yml new file mode 100644 index 00000000..16dbeb79 --- /dev/null +++ b/.github/workflows/macOs-13.yml @@ -0,0 +1,30 @@ +name: macOS-13 Development Environment + +on: + push: + workflow_dispatch: + inputs: + debug_enabled: + type: boolean + description: 'Run the build with tmate debugging enabled (https://github.com/marketplace/actions/debugging-with-tmate)' + required: false + default: false + +jobs: + build: + runs-on: macos-13 # This uses GitHub's hosted macOS runner + steps: + - uses: actions/checkout@v2 + - name: Clone mfgtools repository + run: git clone https://github.com/shoaibmerchant/mfgtools.git + + - name: Install Rust 1.74 + run: | + curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh -s -- -y --default-toolchain 1.74.0 + echo "$HOME/.cargo/bin" >> $GITHUB_PATH + + - name: Setup tmate session + uses: mxschmitt/action-tmate@v3 + with: + limit-access-to-actor: false + if: ${{ github.event_name == 'workflow_dispatch' && github.event.inputs.debug_enabled }} diff --git a/.github/workflows/macOs-14.yml b/.github/workflows/macOs-14.yml new file mode 100644 index 00000000..488177b9 --- /dev/null +++ b/.github/workflows/macOs-14.yml @@ -0,0 +1,30 @@ +name: macOS-14 Development Environment + +on: + push: + workflow_dispatch: + inputs: + debug_enabled: + type: boolean + description: 'Run the build with tmate debugging enabled (https://github.com/marketplace/actions/debugging-with-tmate)' + required: false + default: false + +jobs: + build: + runs-on: macos-14-large # This uses GitHub's hosted macOS runner + steps: + - uses: actions/checkout@v2 + - name: Clone mfgtools repository + run: git clone https://github.com/shoaibmerchant/mfgtools.git + + - name: Install Rust 1.74 + run: | + curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh -s -- -y --default-toolchain 1.74.0 + echo "$HOME/.cargo/bin" >> $GITHUB_PATH + + - name: Setup tmate session + uses: mxschmitt/action-tmate@v3 + with: + limit-access-to-actor: false + if: ${{ github.event_name == 'workflow_dispatch' && github.event.inputs.debug_enabled }} diff --git a/.github/workflows/ubuntu-20.04.yml b/.github/workflows/ubuntu-20.04.yml new file mode 100644 index 00000000..9968355b --- /dev/null +++ b/.github/workflows/ubuntu-20.04.yml @@ -0,0 +1,30 @@ +name: ubuntu-20.04 Development Environment + +on: + push: + workflow_dispatch: + inputs: + debug_enabled: + type: boolean + description: 'Run the build with tmate debugging enabled (https://github.com/marketplace/actions/debugging-with-tmate)' + required: false + default: false + +jobs: + build: + runs-on: ubuntu-20.04 # This uses GitHub's hosted Ubuntu runner + steps: + - uses: actions/checkout@v2 + - name: Clone mfgtools repository + run: git clone https://github.com/shoaibmerchant/mfgtools.git + + - name: Install Rust 1.74 + run: | + curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh -s -- -y --default-toolchain 1.74.0 + echo "$HOME/.cargo/bin" >> $GITHUB_PATH + + - name: Setup tmate session + uses: mxschmitt/action-tmate@v3 + with: + limit-access-to-actor: false + if: ${{ github.event_name == 'workflow_dispatch' && github.event.inputs.debug_enabled }} diff --git a/.github/workflows/ubuntu-22.04.yml b/.github/workflows/ubuntu-22.04.yml new file mode 100644 index 00000000..11bc0d03 --- /dev/null +++ b/.github/workflows/ubuntu-22.04.yml @@ -0,0 +1,30 @@ +name: ubuntu-22.04 Development Environment + +on: + push: + workflow_dispatch: + inputs: + debug_enabled: + type: boolean + description: 'Run the build with tmate debugging enabled (https://github.com/marketplace/actions/debugging-with-tmate)' + required: false + default: false + +jobs: + build: + runs-on: ubuntu-22.04 # This uses GitHub's hosted Ubuntu runner + steps: + - uses: actions/checkout@v2 + - name: Clone mfgtools repository + run: git clone https://github.com/shoaibmerchant/mfgtools.git + + - name: Install Rust 1.74 + run: | + curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh -s -- -y --default-toolchain 1.74.0 + echo "$HOME/.cargo/bin" >> $GITHUB_PATH + + - name: Setup tmate session + uses: mxschmitt/action-tmate@v3 + with: + limit-access-to-actor: false + if: ${{ github.event_name == 'workflow_dispatch' && github.event.inputs.debug_enabled }} diff --git a/.github/workflows/windows-2019.yml b/.github/workflows/windows-2019.yml new file mode 100644 index 00000000..ed828652 --- /dev/null +++ b/.github/workflows/windows-2019.yml @@ -0,0 +1,30 @@ +name: windows-server-2019 Development Environment + +on: + push: + workflow_dispatch: + inputs: + debug_enabled: + type: boolean + description: 'Run the build with tmate debugging enabled (https://github.com/marketplace/actions/debugging-with-tmate)' + required: false + default: false + +jobs: + build: + runs-on: windows-2019 # This uses GitHub's hosted Windows runner + steps: + - uses: actions/checkout@v2 + - name: Clone mfgtools repository + run: git clone https://github.com/shoaibmerchant/mfgtools.git + + - name: Install Rust 1.74 + run: | + curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh -s -- -y --default-toolchain 1.74.0 + echo "$HOME/.cargo/bin" >> $GITHUB_PATH + + - name: Setup tmate session + uses: mxschmitt/action-tmate@v3 + with: + limit-access-to-actor: false + if: ${{ github.event_name == 'workflow_dispatch' && github.event.inputs.debug_enabled }} From 35d62198771dee931008645899c0f1472df88e7f Mon Sep 17 00:00:00 2001 From: dhruveshb-mecha Date: Sat, 5 Oct 2024 02:19:40 -0400 Subject: [PATCH 2/2] fix: remove unnecessary clone changes --- .github/workflows/macOs-12.yml | 6 ++---- .github/workflows/macOs-13.yml | 6 ++---- .github/workflows/macOs-14.yml | 6 ++---- .github/workflows/ubuntu-20.04.yml | 6 ++---- .github/workflows/ubuntu-22.04.yml | 6 ++---- .github/workflows/windows-2019.yml | 6 ++---- 6 files changed, 12 insertions(+), 24 deletions(-) diff --git a/.github/workflows/macOs-12.yml b/.github/workflows/macOs-12.yml index 9cae5730..6c982043 100644 --- a/.github/workflows/macOs-12.yml +++ b/.github/workflows/macOs-12.yml @@ -6,7 +6,7 @@ on: inputs: debug_enabled: type: boolean - description: 'Run the build with tmate debugging enabled (https://github.com/marketplace/actions/debugging-with-tmate)' + description: "Run the build with tmate debugging enabled (https://github.com/marketplace/actions/debugging-with-tmate)" required: false default: false @@ -15,9 +15,7 @@ jobs: runs-on: macos-12 # This uses GitHub's hosted macOS runner steps: - uses: actions/checkout@v2 - - name: Clone mfgtools repository - run: git clone https://github.com/shoaibmerchant/mfgtools.git - + - name: Install Rust 1.74 run: | curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh -s -- -y --default-toolchain 1.74.0 diff --git a/.github/workflows/macOs-13.yml b/.github/workflows/macOs-13.yml index 16dbeb79..4e9477fc 100644 --- a/.github/workflows/macOs-13.yml +++ b/.github/workflows/macOs-13.yml @@ -6,7 +6,7 @@ on: inputs: debug_enabled: type: boolean - description: 'Run the build with tmate debugging enabled (https://github.com/marketplace/actions/debugging-with-tmate)' + description: "Run the build with tmate debugging enabled (https://github.com/marketplace/actions/debugging-with-tmate)" required: false default: false @@ -15,9 +15,7 @@ jobs: runs-on: macos-13 # This uses GitHub's hosted macOS runner steps: - uses: actions/checkout@v2 - - name: Clone mfgtools repository - run: git clone https://github.com/shoaibmerchant/mfgtools.git - + - name: Install Rust 1.74 run: | curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh -s -- -y --default-toolchain 1.74.0 diff --git a/.github/workflows/macOs-14.yml b/.github/workflows/macOs-14.yml index 488177b9..5bb649e9 100644 --- a/.github/workflows/macOs-14.yml +++ b/.github/workflows/macOs-14.yml @@ -6,7 +6,7 @@ on: inputs: debug_enabled: type: boolean - description: 'Run the build with tmate debugging enabled (https://github.com/marketplace/actions/debugging-with-tmate)' + description: "Run the build with tmate debugging enabled (https://github.com/marketplace/actions/debugging-with-tmate)" required: false default: false @@ -15,9 +15,7 @@ jobs: runs-on: macos-14-large # This uses GitHub's hosted macOS runner steps: - uses: actions/checkout@v2 - - name: Clone mfgtools repository - run: git clone https://github.com/shoaibmerchant/mfgtools.git - + - name: Install Rust 1.74 run: | curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh -s -- -y --default-toolchain 1.74.0 diff --git a/.github/workflows/ubuntu-20.04.yml b/.github/workflows/ubuntu-20.04.yml index 9968355b..84d24e76 100644 --- a/.github/workflows/ubuntu-20.04.yml +++ b/.github/workflows/ubuntu-20.04.yml @@ -6,7 +6,7 @@ on: inputs: debug_enabled: type: boolean - description: 'Run the build with tmate debugging enabled (https://github.com/marketplace/actions/debugging-with-tmate)' + description: "Run the build with tmate debugging enabled (https://github.com/marketplace/actions/debugging-with-tmate)" required: false default: false @@ -15,9 +15,7 @@ jobs: runs-on: ubuntu-20.04 # This uses GitHub's hosted Ubuntu runner steps: - uses: actions/checkout@v2 - - name: Clone mfgtools repository - run: git clone https://github.com/shoaibmerchant/mfgtools.git - + - name: Install Rust 1.74 run: | curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh -s -- -y --default-toolchain 1.74.0 diff --git a/.github/workflows/ubuntu-22.04.yml b/.github/workflows/ubuntu-22.04.yml index 11bc0d03..303525da 100644 --- a/.github/workflows/ubuntu-22.04.yml +++ b/.github/workflows/ubuntu-22.04.yml @@ -6,7 +6,7 @@ on: inputs: debug_enabled: type: boolean - description: 'Run the build with tmate debugging enabled (https://github.com/marketplace/actions/debugging-with-tmate)' + description: "Run the build with tmate debugging enabled (https://github.com/marketplace/actions/debugging-with-tmate)" required: false default: false @@ -15,9 +15,7 @@ jobs: runs-on: ubuntu-22.04 # This uses GitHub's hosted Ubuntu runner steps: - uses: actions/checkout@v2 - - name: Clone mfgtools repository - run: git clone https://github.com/shoaibmerchant/mfgtools.git - + - name: Install Rust 1.74 run: | curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh -s -- -y --default-toolchain 1.74.0 diff --git a/.github/workflows/windows-2019.yml b/.github/workflows/windows-2019.yml index ed828652..9d7aa9fc 100644 --- a/.github/workflows/windows-2019.yml +++ b/.github/workflows/windows-2019.yml @@ -6,7 +6,7 @@ on: inputs: debug_enabled: type: boolean - description: 'Run the build with tmate debugging enabled (https://github.com/marketplace/actions/debugging-with-tmate)' + description: "Run the build with tmate debugging enabled (https://github.com/marketplace/actions/debugging-with-tmate)" required: false default: false @@ -15,9 +15,7 @@ jobs: runs-on: windows-2019 # This uses GitHub's hosted Windows runner steps: - uses: actions/checkout@v2 - - name: Clone mfgtools repository - run: git clone https://github.com/shoaibmerchant/mfgtools.git - + - name: Install Rust 1.74 run: | curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh -s -- -y --default-toolchain 1.74.0