From e19d2a423fa9d5683c4d21706e12f6ca9492c840 Mon Sep 17 00:00:00 2001 From: ota Date: Sat, 16 Dec 2023 09:55:36 +0200 Subject: [PATCH] add workflow scripts for Windows & Linux for generate_emu_config --- .../workflows/build-gen_emu_config-linux.yml | 37 +++++++++++++++++++ ...onfig.yml => build-gen_emu_config-win.yml} | 15 +++----- 2 files changed, 42 insertions(+), 10 deletions(-) create mode 100644 .github/workflows/build-gen_emu_config-linux.yml rename .github/workflows/{build-gen_emu_config.yml => build-gen_emu_config-win.yml} (73%) diff --git a/.github/workflows/build-gen_emu_config-linux.yml b/.github/workflows/build-gen_emu_config-linux.yml new file mode 100644 index 00000000..90078ba8 --- /dev/null +++ b/.github/workflows/build-gen_emu_config-linux.yml @@ -0,0 +1,37 @@ +name: Generate emu config (Windows) + +on: + push: + branches: [ "ci_runner" ] + # pull_request: + # branches: [ "ci_runner" ] + +permissions: + contents: read + +jobs: + build: + runs-on: ubuntu-22.04 + + steps: + - name: Checkout branch + uses: actions/checkout@v4 + + - name: Install dependencies + shell: bash + working-directory: ${{ github.workspace }}/scripts + run: sudo chmod 77 recreate_venv_linux.sh && ./recreate_venv_linux.sh + + - name: Rebuild + shell: bash + working-directory: ${{ github.workspace }}/scripts + run: sudo chmod 77 rebuild_linux.sh && ./rebuild_linux.sh + + - name: Upload build + uses: actions/upload-artifact@v4 + with: + name: "generate_emu_config-linux-${{ github.sha }}" + path: 'scripts/bin/linux/' + if-no-files-found: 'error' + compression-level: 9 + \ No newline at end of file diff --git a/.github/workflows/build-gen_emu_config.yml b/.github/workflows/build-gen_emu_config-win.yml similarity index 73% rename from .github/workflows/build-gen_emu_config.yml rename to .github/workflows/build-gen_emu_config-win.yml index c60b46ba..4cd571ba 100644 --- a/.github/workflows/build-gen_emu_config.yml +++ b/.github/workflows/build-gen_emu_config-win.yml @@ -3,17 +3,12 @@ name: Generate emu config (Windows) on: push: branches: [ "ci_runner" ] - pull_request: - branches: [ "ci_runner" ] + # pull_request: + # branches: [ "ci_runner" ] permissions: contents: read -env: - # Expected format {owner}/{repo}. - DEPS_REPO: 'otavepto/gbe_fork-deps' - THIRD_PARTY_BASE_DIR: 'third-party' - jobs: build: runs-on: windows-2022 @@ -30,18 +25,18 @@ jobs: - name: Install dependencies shell: cmd working-directory: ${{ github.workspace }}/scripts - run: recreate_venv.bat + run: recreate_venv_win.bat - name: Rebuild shell: cmd working-directory: ${{ github.workspace }}/scripts - run: rebuild.bat + run: rebuild_win.bat - name: Upload build uses: actions/upload-artifact@v4 with: name: "generate_emu_config-win-${{ github.sha }}" - path: 'scripts/bin/generate_emu_config/' + path: 'scripts/bin/win/' if-no-files-found: 'error' compression-level: 9 \ No newline at end of file