Skip to content

Update runners

Update runners #6

Workflow file for this run

name: Publish Package
on:
push:
branches:
- master
pull_request:
workflow_dispatch: # Manually start a workflow
jobs:
release-windows:
runs-on: windows-2019
steps:
- uses: actions/checkout@master
- name: Setup MSVC++
uses: ilammy/msvc-dev-cmd@v1
with:
arch: x86
- uses: actions/setup-python@v2
- name: Building
run: |
.\make.bat
- uses: actions/upload-artifact@v2
name: Upload artifact
with:
name: windows
path: Build/Bundles/ohNet-*.tar.gz
- uses: svenstaro/upload-release-action@v2
if: startsWith(github.ref, 'refs/tags/')
name: Upload attachment to release
with:
repo_token: ${{ secrets.GITHUB_TOKEN }}
file_glob: true
file: Build/Bundles/ohNet-*.tar.gz
tag: ${{ github.ref }}
release-linux:
env:
CONAN_GCC_VERSIONS: 9
CONAN_ARCHS: x86_64
OH_PLATFORM: Linux-x64
COMPILER_NAME: gcc
runs-on: ubuntu-20.04
steps:
- uses: actions/checkout@master
- uses: actions/setup-python@v2
- name: Setup environment
shell: bash
run: |
sudo apt-get update -y && sudo apt-get install -y mono-roslyn
- name: Building
shell: bash
run: |
make
- uses: actions/upload-artifact@v2
name: Upload artifact
with:
name: linux
path: Build/Bundles/ohNet-*.tar.gz
- uses: svenstaro/upload-release-action@v2
if: startsWith(github.ref, 'refs/tags/')
name: Upload attachment to release
with:
repo_token: ${{ secrets.GITHUB_TOKEN }}
file_glob: true
file: Build/Bundles/ohNet-*.tar.gz
tag: ${{ github.ref }}
release-osx:
runs-on: macos-12
env:
OH_PLATFORM: Mac-x64
steps:
- uses: actions/checkout@master
- uses: maxim-lobanov/setup-xcode@v1
- name: Building
run: |
make
- name: Log files
run: |
ls -al Build/Bundles
- uses: actions/upload-artifact@v2
name: Upload artifact
with:
name: mac
path: Build/Bundles/ohNet-*.tar.gz
- uses: svenstaro/upload-release-action@v2
if: startsWith(github.ref, 'refs/tags/')
name: Upload attachment to release
with:
repo_token: ${{ secrets.GITHUB_TOKEN }}
file_glob: true
file: Build/Bundles/ohNet-*.tar.gz
tag: ${{ github.ref }}