fix typo #224
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: build | |
on: [push, pull_request] | |
env: | |
OSSRH_JIRA_PASSWORD: ${{ secrets.OSSRH_JIRA_PASSWORD }} | |
jobs: | |
create-staging-repo: | |
env: | |
STAGING: true | |
name: Create staging repository | |
runs-on: ubuntu-latest | |
outputs: | |
staging-repo: ${{ steps.create-repo.outputs.repo }} | |
steps: | |
- uses: actions/checkout@v2 | |
- id: create-repo | |
if: startsWith(github.ref, 'refs/tags/v') == true | |
run: "mvn -B --settings mvnsettings.xml nexus-staging:rc-open -DserverId=ossrh -DnexusUrl=https://oss.sonatype.org/ -DstagingProfileId=72c1cc10566951 -DopenedRepositoryMessageFormat='\n::set-output name=repo::%s'" | |
build-native: | |
name: Build native libs | |
needs: create-staging-repo | |
runs-on: ${{ matrix.runner }} | |
defaults: | |
run: | |
shell: ${{ matrix.shell }} | |
strategy: | |
matrix: | |
include: | |
- os: windows | |
runner: windows-latest | |
shell: msys2 {0} | |
platform: windows-x86_64 | |
- os: macos | |
runner: macos-latest | |
shell: bash | |
platform: macosx-x86_64 | |
- os: macos | |
runner: macos-latest | |
shell: bash | |
platform: macosx-arm64 | |
- os: linux | |
runner: ubuntu-latest | |
shell: bash | |
platform: linux-x86_64 | |
- os: linux | |
runner: buildjet-4vcpu-ubuntu-2204-arm | |
shell: bash | |
platform: linux-arm64 | |
env: | |
SIGN_KEY: ${{ secrets.SIGN_KEY }} | |
SIGN_KEY_PASS: ${{ secrets.SIGN_KEY_PASS }} | |
STAGING_REPO: ${{ needs.create-staging-repo.outputs.staging-repo }} | |
DETECTED_PLATFORM: ${{ matrix.platform }} | |
SDKROOT: /Library/Developer/CommandLineTools/SDKs/MacOSX11.1.sdk | |
STAGING: ${{ startsWith(github.ref, 'refs/tags/v') }} | |
steps: | |
- uses: actions/checkout@v2 | |
- uses: msys2/setup-msys2@v2 | |
if: matrix.os == 'windows' | |
with: | |
install: base-devel gcc | |
path-type: inherit | |
- uses: ilammy/msvc-dev-cmd@v1 | |
- uses: maxim-lobanov/setup-xcode@v1 | |
if: matrix.os == 'macos' | |
with: | |
xcode-version: latest-stable | |
- name: Build native binaries | |
run: bash build.sh deploy | |
if: matrix.os != 'linux' | |
- name: Build native binaries in centos container | |
if: matrix.os == 'linux' | |
uses: docker://ghcr.io/gliwka/centos7-toolchain:main@sha256:b5cd4969280766364af6a9d0235b8fc517896f82c81b18bbe555da1397887e69 | |
with: | |
args: build.sh deploy |