Update main.yml
This commit is contained in:
7
.github/workflows/main.yml
vendored
7
.github/workflows/main.yml
vendored
@@ -10,11 +10,12 @@ on:
|
|||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
build:
|
build:
|
||||||
runs-on: [self-hosted, linux, ARM64]
|
runs-on: ${{ matrix.os }}
|
||||||
|
|
||||||
strategy:
|
strategy:
|
||||||
matrix:
|
matrix:
|
||||||
os: [windows-2019, macos-13, ubuntu-20.04]
|
os: [windows-2019, macos-13, ubuntu-20.04]
|
||||||
|
arch: [aarch64, amd64]
|
||||||
|
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v2
|
- uses: actions/checkout@v2
|
||||||
@@ -81,18 +82,16 @@ jobs:
|
|||||||
if: matrix.os == 'macos-13' || matrix.os == 'ubuntu-20.04'
|
if: matrix.os == 'macos-13' || matrix.os == 'ubuntu-20.04'
|
||||||
run: |
|
run: |
|
||||||
echo "VERSION=$(python Movie_Data_Capture.py --version)" >> $GITHUB_ENV
|
echo "VERSION=$(python Movie_Data_Capture.py --version)" >> $GITHUB_ENV
|
||||||
echo "ARCH=$(arch)" >> $GITHUB_ENV
|
|
||||||
|
|
||||||
- name: Set VERSION variable for windows
|
- name: Set VERSION variable for windows
|
||||||
if: matrix.os == 'windows-2019'
|
if: matrix.os == 'windows-2019'
|
||||||
run: |
|
run: |
|
||||||
echo "VERSION=$(python Movie_Data_Capture.py --version)" | Out-File -FilePath $env:GITHUB_ENV -Encoding utf8 -Append
|
echo "VERSION=$(python Movie_Data_Capture.py --version)" | Out-File -FilePath $env:GITHUB_ENV -Encoding utf8 -Append
|
||||||
echo "ARCH=$env:PROCESSOR_ARCHITECTURE" | Out-File -FilePath $env:GITHUB_ENV -Encoding utf8 -Append
|
|
||||||
|
|
||||||
- name: Upload build artifact
|
- name: Upload build artifact
|
||||||
uses: actions/upload-artifact@v1
|
uses: actions/upload-artifact@v1
|
||||||
with:
|
with:
|
||||||
name: MDC-${{ env.VERSION }}-${{ runner.os }}-${{ env.ARCH }}
|
name: MDC-${{ env.VERSION }}-${{ runner.os }}-${{ runner.arch }}
|
||||||
path: dist
|
path: dist
|
||||||
|
|
||||||
- name: Run test (Ubuntu & MacOS)
|
- name: Run test (Ubuntu & MacOS)
|
||||||
|
|||||||
Reference in New Issue
Block a user