Skip to content

更改运行架构 #530

更改运行架构

更改运行架构 #530

Workflow file for this run

# This is a basic workflow to help you get started with Actions
name: CI
# Controls when the workflow will run
on:
# Triggers the workflow on push or pull request events but only for the master branch
push:
branches: [ master ]
pull_request:
branches: [ master , develop]
# Allows you to run this workflow manually from the Actions tab
workflow_dispatch:
# cancel previous run on new pushes to PR
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true
jobs:
macos-test:
runs-on: macos-latest
steps:
- uses: actions/checkout@v3
- uses: ./.github/actions/install-mac-dependencies
- name: make test
run: make test
macos-bs-test:
runs-on: macos-latest
steps:
- uses: actions/checkout@v3
- uses: ./.github/actions/install-mac-dependencies
- name: make bsrt
if: '! github.event.pull_request.draft'
run: make bsrt
macos-bs-build:
runs-on: macos-latest
steps:
- uses: actions/checkout@v3
- uses: ./.github/actions/install-mac-dependencies
- name: make bsr
if: '! github.event.pull_request.draft'
run: make bsr
- uses: actions/upload-artifact@v3
with:
name: macos-release-package
path: |
./yy
./install.sh
./runtime/libyyrtdebug.a
./runtime/libyyrtopt.a
./yylib
# This workflow contains a single job called "build"
ubuntu-test:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: ./.github/actions/install-linux-dependencies
- name: make test
run: make test
ubuntu-test-bs:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: ./.github/actions/install-linux-dependencies
- name: make test_bs
run: make test_bs
ubuntu-bs-test-tc:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: ./.github/actions/install-linux-dependencies
- name: make bsrttc
run: make bsrttc
ubuntu-bs-test:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: ./.github/actions/install-linux-dependencies
- name: make bsrt
if: '! github.event.pull_request.draft'
run: make bsrt
- name: make bsrtvv
if: failure()
run: make bsrtvv
ubuntu-bs-test-bs:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: ./.github/actions/install-linux-dependencies
- name: make bsrt_bs
if: '! github.event.pull_request.draft'
run: make bsrt_bs
ubuntu-bs-build-p:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: ./.github/actions/install-linux-dependencies
- name: make bsrp
if: '! github.event.pull_request.draft'
run: make bsrp
- name: make bsrpvv
if: failure()
run: make bsrpvv
ubuntu-bs-build-tc:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: ./.github/actions/install-linux-dependencies
- name: make bsrtc
if: '! github.event.pull_request.draft'
run: make bsrtc
- name: make bsrtcvv
if: failure()
run: make bsrtcvv
ubuntu-bs-build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: ./.github/actions/install-linux-dependencies
- name: make bsr
if: '! github.event.pull_request.draft'
run: make bsr
- name: make bsrvv
if: failure()
run: make bsrvv
- uses: actions/upload-artifact@v3
with:
name: ubuntu-linux-release-package
path: |
./yy
./install.sh
./runtime/libyyrtdebug.a
./runtime/libyyrtopt.a
./yylib
ubuntu-bs-build-js:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: ./.github/actions/install-linux-dependencies
- name: make bsrjs
if: '! github.event.pull_request.draft'
run: make bsr
- uses: actions/upload-artifact@v3
with:
name: ubuntu-linux-release-package
path: |
./yy
./install.sh
./runtime
./yylib
ubuntu-bs-build-whole-opt:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: ./.github/actions/install-linux-dependencies
- name: make bsr
if: '! github.event.pull_request.draft'
run: make bsrwhole
- uses: actions/upload-artifact@v3
with:
name: ubuntu-linux-release-package
path: |
./yy
./install.sh
./runtime/libyyrtdebug.a
./runtime/libyyrtopt.a
./yylib
ubuntu-bs-build-custom:
runs-on: custom-runner-1
timeout-minutes: 2880
steps:
- uses: actions/checkout@v3
- uses: ./.github/actions/install-linux-dependencies
- name: make bsr
if: '! github.event.pull_request.draft'
run: |
make -C runtime debug
yy 豫言编译器/入口。豫 -o yy_bs
cp ./.yybuild.nosync/yy_入口_豫言编译器默认执行包.opt.bc .
- uses: actions/upload-artifact@v3
with:
name: generic-release
path: |
./yy_入口_豫言编译器默认执行包.opt.bc
./yylib
./runtime
!./runtime/*.o
!./runtime/*.a