From 17ee20be71b4afb8de8910ef3e898306d851a79e Mon Sep 17 00:00:00 2001 From: deng113jie Date: Tue, 14 Sep 2021 11:00:40 +0100 Subject: [PATCH 1/5] Create main.yml --- .github/workflows/main.yml | 29 +++++++++++++++++++++++++++++ 1 file changed, 29 insertions(+) create mode 100644 .github/workflows/main.yml diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml new file mode 100644 index 0000000..e4c47c8 --- /dev/null +++ b/.github/workflows/main.yml @@ -0,0 +1,29 @@ +# 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 main branch + push: + branches: [ main ] + pull_request: + branches: [ main ] + + # Allows you to run this workflow manually from the Actions tab + workflow_dispatch: + +# A workflow run is made up of one or more jobs that can run sequentially or in parallel +jobs: + # This workflow contains a single job called "build" + build: + # The type of runner that the job will run on + runs-on: [ubuntu-latest, windows-latest] + + # Steps represent a sequence of tasks that will be executed as part of the job + steps: + # Checks-out your repository under $GITHUB_WORKSPACE, so your job can access it + - uses: actions/checkout@v2 + - name: pbuild + run: python -m build + From c1c6d8ebd184e9cc18c251aa59b12a6eb658dd16 Mon Sep 17 00:00:00 2001 From: deng113jie Date: Tue, 14 Sep 2021 11:17:00 +0100 Subject: [PATCH 2/5] Update main.yml --- .github/workflows/main.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index e4c47c8..7ca640a 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -18,7 +18,7 @@ jobs: # This workflow contains a single job called "build" build: # The type of runner that the job will run on - runs-on: [ubuntu-latest, windows-latest] + runs-on: windows-latest # Steps represent a sequence of tasks that will be executed as part of the job steps: From 7957a5653bce747bb3fd5ff1ee73f2ff5967ef31 Mon Sep 17 00:00:00 2001 From: deng113jie Date: Wed, 15 Sep 2021 10:39:24 +0100 Subject: [PATCH 3/5] Update main.yml --- .github/workflows/main.yml | 12 ++++++++++-- 1 file changed, 10 insertions(+), 2 deletions(-) diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index 7ca640a..f9a4bd6 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -24,6 +24,14 @@ jobs: steps: # Checks-out your repository under $GITHUB_WORKSPACE, so your job can access it - uses: actions/checkout@v2 - - name: pbuild - run: python -m build + - uses: actions/setup-python@v2 + with: + python-version: '3.7' + + - name: pip install + - run: + pip install build, cython + + - name: build + - run: python -m build From f9223f7d0ab5c2f3c7cf3b4602ae5b17cecf1e08 Mon Sep 17 00:00:00 2001 From: deng113jie Date: Wed, 15 Sep 2021 10:42:48 +0100 Subject: [PATCH 4/5] Update main.yml --- .github/workflows/main.yml | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index f9a4bd6..4483821 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -27,11 +27,9 @@ jobs: - uses: actions/setup-python@v2 with: python-version: '3.7' - - name: pip install - - run: + run: pip install build, cython - - name: build - - run: python -m build + run: python -m build From c8a9370aa9a93a86f6815cf6bdf812cb8f2d9917 Mon Sep 17 00:00:00 2001 From: deng113jie Date: Wed, 15 Sep 2021 10:44:11 +0100 Subject: [PATCH 5/5] Update main.yml --- .github/workflows/main.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index 4483821..74051fb 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -29,7 +29,7 @@ jobs: python-version: '3.7' - name: pip install run: - pip install build, cython + pip install build cython - name: build run: python -m build