2023-12-16 15:56:33 +08:00
|
|
|
name: Generate emu config (Linux)
|
2023-12-16 13:20:05 +08:00
|
|
|
|
|
|
|
on:
|
|
|
|
push:
|
|
|
|
branches: [ "ci_runner" ]
|
2023-12-16 15:55:36 +08:00
|
|
|
# pull_request:
|
|
|
|
# branches: [ "ci_runner" ]
|
2023-12-16 13:20:05 +08:00
|
|
|
|
|
|
|
permissions:
|
|
|
|
contents: read
|
|
|
|
|
|
|
|
jobs:
|
|
|
|
build:
|
2023-12-16 15:55:36 +08:00
|
|
|
runs-on: ubuntu-22.04
|
2023-12-16 13:20:05 +08:00
|
|
|
|
|
|
|
steps:
|
2023-12-16 13:25:21 +08:00
|
|
|
- name: Checkout branch
|
|
|
|
uses: actions/checkout@v4
|
|
|
|
|
2023-12-16 13:20:05 +08:00
|
|
|
- name: Install dependencies
|
2023-12-16 15:55:36 +08:00
|
|
|
shell: bash
|
2023-12-16 13:25:21 +08:00
|
|
|
working-directory: ${{ github.workspace }}/scripts
|
2023-12-16 15:55:36 +08:00
|
|
|
run: sudo chmod 77 recreate_venv_linux.sh && ./recreate_venv_linux.sh
|
2023-12-16 13:20:05 +08:00
|
|
|
|
|
|
|
- name: Rebuild
|
2023-12-16 15:55:36 +08:00
|
|
|
shell: bash
|
2023-12-16 13:25:21 +08:00
|
|
|
working-directory: ${{ github.workspace }}/scripts
|
2023-12-16 15:55:36 +08:00
|
|
|
run: sudo chmod 77 rebuild_linux.sh && ./rebuild_linux.sh
|
2023-12-16 13:20:05 +08:00
|
|
|
|
|
|
|
- name: Upload build
|
|
|
|
uses: actions/upload-artifact@v4
|
|
|
|
with:
|
2023-12-16 15:55:36 +08:00
|
|
|
name: "generate_emu_config-linux-${{ github.sha }}"
|
|
|
|
path: 'scripts/bin/linux/'
|
2023-12-16 13:20:05 +08:00
|
|
|
if-no-files-found: 'error'
|
|
|
|
compression-level: 9
|
|
|
|
|