Update main.yml

This commit is contained in:
Yoshiko2
2023-08-06 03:43:15 +08:00
committed by GitHub
parent 7581d73b8c
commit 08c49836da

View File

@@ -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)