Skip to content

Bump actions/download-artifact from 2 to 4.1.7 in /.github/workflows #259

Bump actions/download-artifact from 2 to 4.1.7 in /.github/workflows

Bump actions/download-artifact from 2 to 4.1.7 in /.github/workflows #259

Workflow file for this run

name: Build for OSX
on:
push:
pull_request:
release:
types: # This configuration does not affect the page_build event above
- created
jobs:
build:
runs-on: macos-latest
steps:
- uses: actions/checkout@v1
with:
submodules: true
- uses: robinraju/release-downloader@v1.5
with:
repository: ${{ secrets.SDK_REPO }}
latest: true
filename: "IDA_SDKs.zip"
token: ${{ secrets.SDK_REPO_ACCESS_TOKEN }}
- name: Unzip IDA_SDKs.zip
shell: bash
run: |
unzip IDA_SDKs.zip -d IDA_SDKs
cd IDA_SDKs
unzip -n -q '*.zip'
- name: Install Triton (delete first two lines when Triton last port is in the CI)
run: |
echo "set(VCPKG_BUILD_TYPE release)" >> $VCPKG_INSTALLATION_ROOT/triplets/x64-osx.cmake
vcpkg install triton
- name: Build Ponce IDA 7.0
run: |
cmake -S . -B build_x64_7.0 -DIDASDK_ROOT_DIR="./IDA_SDKs/idasdk70" -DSTATICLIB=ON -DCMAKE_BUILD_TYPE=Release -DCMAKE_TOOLCHAIN_FILE="$VCPKG_INSTALLATION_ROOT/scripts/buildsystems/vcpkg.cmake"
cmake --build build_x64_7.0 --config Release --parallel 2
- name: Build Ponce IDA 7.1
run: |
cmake -S . -B build_x64_7.1 -DIDASDK_ROOT_DIR="./IDA_SDKs/idasdk71" -DSTATICLIB=ON -DCMAKE_BUILD_TYPE=Release -DCMAKE_TOOLCHAIN_FILE="$VCPKG_INSTALLATION_ROOT/scripts/buildsystems/vcpkg.cmake"
cmake --build build_x64_7.1 --config Release --parallel 2
- name: Build Ponce IDA 7.2
run: |
cmake -S . -B build_x64_7.2 -DIDASDK_ROOT_DIR="./IDA_SDKs/idasdk72" -DSTATICLIB=ON -DCMAKE_BUILD_TYPE=Release -DCMAKE_TOOLCHAIN_FILE="$VCPKG_INSTALLATION_ROOT/scripts/buildsystems/vcpkg.cmake"
cmake --build build_x64_7.2 --config Release --parallel 2
- name: Build Ponce IDA 7.3
run: |
cmake -S . -B build_x64_7.3 -DUSE_CLANG=ON -DIDASDK_ROOT_DIR="./IDA_SDKs/idasdk73" -DSTATICLIB=ON -DCMAKE_BUILD_TYPE=Release -DCMAKE_TOOLCHAIN_FILE="$VCPKG_INSTALLATION_ROOT/scripts/buildsystems/vcpkg.cmake"
cmake --build build_x64_7.3 --config Release --parallel 2
- name: Build Ponce IDA 7.4
run: |
cmake -S . -B build_x64_7.4 -DUSE_CLANG=ON -DIDASDK_ROOT_DIR="./IDA_SDKs/idasdk74" -DSTATICLIB=ON -DCMAKE_BUILD_TYPE=Release -DCMAKE_TOOLCHAIN_FILE="$VCPKG_INSTALLATION_ROOT/scripts/buildsystems/vcpkg.cmake"
cmake --build build_x64_7.4 --config Release --parallel 2
- name: Build Ponce IDA 7.5
run: |
cmake -S . -B build_x64_7.5 -DUSE_CLANG=ON -DIDASDK_ROOT_DIR="./IDA_SDKs/idasdk75" -DSTATICLIB=ON -DCMAKE_BUILD_TYPE=Release -DCMAKE_TOOLCHAIN_FILE="$VCPKG_INSTALLATION_ROOT/scripts/buildsystems/vcpkg.cmake"
cmake --build build_x64_7.5 --config Release --parallel 2
- name: Build Ponce IDA 7.6
run: |
cmake -S . -B build_x64_7.6 -DUSE_CLANG=ON -DIDASDK_ROOT_DIR="./IDA_SDKs/idasdk76" -DSTATICLIB=ON -DCMAKE_BUILD_TYPE=Release -DCMAKE_TOOLCHAIN_FILE="$VCPKG_INSTALLATION_ROOT/scripts/buildsystems/vcpkg.cmake"
cmake --build build_x64_7.6 --config Release --parallel 2
- name: Build Ponce IDA 7.7
run: |
cmake -S . -B build_x64_7.7 -DUSE_CLANG=ON -DIDASDK_ROOT_DIR="./IDA_SDKs/idasdk77" -DSTATICLIB=ON -DCMAKE_BUILD_TYPE=Release -DCMAKE_TOOLCHAIN_FILE="$VCPKG_INSTALLATION_ROOT/scripts/buildsystems/vcpkg.cmake"
cmake --build build_x64_7.7 --config Release --parallel 2
- name: Build Ponce IDA 8.0
run: |
cmake -S . -B build_x64_8.0 -DUSE_CLANG=ON -DIDASDK_ROOT_DIR="./IDA_SDKs/idasdk_pro80" -DSTATICLIB=ON -DCMAKE_BUILD_TYPE=Release -DCMAKE_TOOLCHAIN_FILE="$VCPKG_INSTALLATION_ROOT/scripts/buildsystems/vcpkg.cmake"
cmake --build build_x64_8.0 --config Release --parallel 2
- name: Build Ponce IDA 8.1
run: |
cmake -S . -B build_x64_8.1 -DUSE_CLANG=ON -DIDASDK_ROOT_DIR="./IDA_SDKs/idasdk_pro81" -DSTATICLIB=ON -DCMAKE_BUILD_TYPE=Release -DCMAKE_TOOLCHAIN_FILE="$VCPKG_INSTALLATION_ROOT/scripts/buildsystems/vcpkg.cmake"
cmake --build build_x64_8.1 --config Release --parallel 2
- uses: actions/upload-artifact@master
with:
name: Ponce_ida70
path: build_x64_7.0/Ponce64.dylib
- uses: actions/upload-artifact@master
with:
name: Ponce_ida70
path: build_x64_7.0/Ponce.dylib
- uses: actions/upload-artifact@master
with:
name: Ponce_ida71
path: build_x64_7.1/Ponce64.dylib
- uses: actions/upload-artifact@master
with:
name: Ponce_ida71
path: build_x64_7.1/Ponce.dylib
- uses: actions/upload-artifact@master
with:
name: Ponce_ida72
path: build_x64_7.2/Ponce64.dylib
- uses: actions/upload-artifact@master
with:
name: Ponce_ida72
path: build_x64_7.2/Ponce.dylib
- uses: actions/upload-artifact@master
with:
name: Ponce_ida73
path: build_x64_7.3/Ponce64.dylib
- uses: actions/upload-artifact@master
with:
name: Ponce_ida73
path: build_x64_7.3/Ponce.dylib
- uses: actions/upload-artifact@master
with:
name: Ponce_ida74
path: build_x64_7.4/Ponce64.dylib
- uses: actions/upload-artifact@master
with:
name: Ponce_ida74
path: build_x64_7.4/Ponce.dylib
- uses: actions/upload-artifact@master
with:
name: Ponce_ida75
path: build_x64_7.5/Ponce64.dylib
- uses: actions/upload-artifact@master
with:
name: Ponce_ida75
path: build_x64_7.5/Ponce.dylib
- uses: actions/upload-artifact@master
with:
name: Ponce_ida76
path: build_x64_7.6/Ponce64.dylib
- uses: actions/upload-artifact@master
with:
name: Ponce_ida76
path: build_x64_7.6/Ponce.dylib
- uses: actions/upload-artifact@master
with:
name: Ponce_ida77
path: build_x64_7.7/Ponce64.dylib
- uses: actions/upload-artifact@master
with:
name: Ponce_ida77
path: build_x64_7.7/Ponce.dylib
- uses: actions/upload-artifact@master
with:
name: Ponce_ida80
path: build_x64_8.0/Ponce64.dylib
- uses: actions/upload-artifact@master
with:
name: Ponce_ida80
path: build_x64_8.0/Ponce.dylib
- uses: actions/upload-artifact@master
with:
name: Ponce_ida81
path: build_x64_8.1/Ponce64.dylib
- uses: actions/upload-artifact@master
with:
name: Ponce_ida81
path: build_x64_8.1/Ponce.dylib
release:
runs-on: ubuntu-latest
if: github.event_name == 'release'
needs: build
steps:
- name: Download all OSX arifacts
uses: actions/download-artifact@v4.1.7
with:
path: ./my_artifacts
- name: Set output
id: vars
run: |
echo ::set-output name=tag::${GITHUB_REF#refs/*/}
- name: Build zip file
env:
RELEASE_VERSION: ${{ steps.vars.outputs.tag }}
run: |
cd my_artifacts
zip -r ../ponce-$RELEASE_VERSION-osx.zip *
- name: Upload OSX artifacts
uses: actions/upload-release-asset@v1
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
upload_url: ${{ github.event.release.upload_url }}
asset_path: ./ponce-${{ steps.vars.outputs.tag }}-osx.zip
asset_name: ponce-${{ steps.vars.outputs.tag }}-osx.zip
asset_content_type: application/zip