Skip to content

Since August 2024, the Github action upload-artifacts ignores hidden … #86

Since August 2024, the Github action upload-artifacts ignores hidden …

Since August 2024, the Github action upload-artifacts ignores hidden … #86

Workflow file for this run

name: build-all
on:
workflow_call:
inputs:
version:
type: string
required: false
push:
branches:
- main
pull_request:
branches:
- main
jobs:
build-dawn-mac:
uses: ./.github/workflows/build-dawn-mac.yaml
build-dawn-win:
uses: ./.github/workflows/build-dawn-win.yaml
build-angle-mac:
uses: ./.github/workflows/build-angle-mac.yaml
build-angle-win:
uses: ./.github/workflows/build-angle-win.yaml
build-win:
needs: [build-dawn-win, build-angle-win]
runs-on: windows-2022
steps:
- uses: actions/setup-python@v4
with:
python-version: '3.10'
- uses: actions/checkout@v4
- uses: actions/download-artifact@v4
with:
path: artifact
- name: Copy Dawn
shell: cmd
run: |
xcopy artifact\dawn-windows-x64 build\dawn.out\ /s /y
- name: Copy Angle
shell: cmd
run: |
xcopy artifact\angle-windows-x64 build\angle.out\ /s /y
- name: Build
shell: cmd
run: |
call "C:\Program Files\Microsoft Visual Studio\2022\Enterprise\VC\Auxiliary\Build\vcvars64.bat"
orcadev.bat build --release --version ${{github.ref_name}} || exit 1
- name: Package
shell: cmd
run: |
if [${{ inputs.version }}]==[] (
orcadev.bat install orca || exit 1
tar --format=ustar -cvzf orca-windows.tar.gz orca
) else (
orcadev.bat install --version ${{ inputs.version }} orca || exit 1
tar --format=ustar -cvzf orca-windows.tar.gz orca
)
- uses: actions/upload-artifact@v4
with:
name: orca-windows
path: orca-windows.tar.gz
build-macos-x64:
needs: [build-dawn-mac, build-angle-mac]
runs-on: macos-13
steps:
- uses: actions/setup-python@v4
with:
python-version: '3.10'
- uses: actions/checkout@v4
- uses: actions/download-artifact@v4
with:
path: artifact
- name: Copy Dawn
run: |
mkdir -p build
cp -r artifact/dawn-mac-x64 build/dawn.out
- name: Copy Angle
run: |
mkdir -p build
cp -r artifact/angle-mac-x64 build/angle.out
- name: Build
run: |
./orcadev build --release --version ${{github.ref_name}}
- name: Package
run: |
if [ "${{ inputs.version }}" != '' ] ; then
./orcadev install --version ${{ inputs.version }} orca
else
./orcadev install orca
fi
tar --format=ustar -czf orca-mac-x64.tar.gz orca
- uses: actions/upload-artifact@v4
with:
name: orca-mac-x64
path: orca-mac-x64.tar.gz
build-macos-arm64:
needs: [build-dawn-mac, build-angle-mac]
runs-on: macos-14
steps:
- uses: actions/setup-python@v4
with:
python-version: '3.10'
- uses: actions/checkout@v4
- uses: actions/download-artifact@v4
with:
path: artifact
- name: Copy Dawn
run: |
mkdir -p build
cp -r artifact/dawn-mac-arm64 build/dawn.out
- name: Copy Angle
run: |
mkdir -p build
cp -r artifact/angle-mac-arm64 build/angle.out
- name: Build
run: |
./orcadev build --release --version ${{github.ref_name}}
- name: Package
run: |
if [ "${{ inputs.version }}" != '' ] ; then
./orcadev install --version ${{ inputs.version }} orca
else
./orcadev install orca
fi
tar --format=ustar -czf orca-mac-arm64.tar.gz orca
- uses: actions/upload-artifact@v4
with:
name: orca-mac-arm64
path: orca-mac-arm64.tar.gz