Update README.md #757
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: CI | |
on: [push] | |
jobs: | |
windows: | |
runs-on: windows-latest | |
steps: | |
- uses: actions/checkout@v2 | |
with: | |
fetch-depth: 0 | |
- uses: actions/setup-node@v2 | |
with: | |
node-version: '17.5.0' | |
cache: 'yarn' | |
- name: Cache c3d libraries | |
uses: actions/cache@v2 | |
env: | |
cache-name: cache-c3d-libraries | |
with: | |
path: Win64_Visual_Studio_2019_Unicode.zip | |
key: ${{ runner.os }}-build-${{ env.cache-name }} | |
- name: Download c3d libraries | |
run: | | |
choco install wget --no-progress | |
wget -q -N --user='${{ secrets.C3D_DOWNLOAD_USER }}' --password '${{ secrets.C3D_DOWNLOAD_PASS }}' https://c3d.sd.ascon.ru/C3D_workversion/V2022_WRK/C3D_Kernel/117658/Kernel/Win64_Visual_Studio_2019_Unicode.zip | |
7z x Win64_Visual_Studio_2019_Unicode.zip -ovendor/c3d/ | |
- name: Setup license key | |
run: | | |
echo '${{ secrets.C3D_LICENSE_KEY_WIN }}' > "license-key.json" | |
- name: Yarn install | |
run: | | |
yarn install --frozen-lockfile | |
- name: Cache C++ build | |
id: cache-cpp-build | |
uses: actions/cache@v2 | |
env: | |
cache-name: cache-cpp-build | |
with: | |
path: build/Release | |
key: ${{ runner.os }}-build-${{ env.cache-name }}-${{ hashFiles('Win64_Visual_Studio_2019_Unicode.zip', 'generate/api.mjs') }} | |
- name: Codegen C++ and build | |
# if: steps.cache-cpp-build.outputs.cache-hit != 'true' | |
run: | | |
choco install astyle --no-progress | |
yarn generate | |
yarn run node-gyp configure | |
yarn electron-rebuild | |
- name: Run tests | |
run: | | |
yarn ci | |
- name: Publish canary release | |
env: | |
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
run: | | |
yarn publish | |
- name: Post | |
run: | | |
choco install curl --no-progress | |
yarn echo-version | |
cmd /c @" | |
curl -H "Content-Type: application/json" -d "{\"username\": \"GitHub\", \"content\": \"https://github.com/nkallen/plasticity/releases/tag/v$(yarn echo-version)\"}" ${{ secrets.DISCORD_WEBHOOK_URL }} | |
"@ | |
linux: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v2 | |
with: | |
fetch-depth: 0 | |
- uses: actions/setup-node@v2 | |
with: | |
node-version: '17.5.0' | |
cache: 'yarn' | |
- name: Cache c3d libraries | |
uses: actions/cache@v2 | |
env: | |
cache-name: cache-c3d-libraries | |
with: | |
path: Linux_Ubuntu_1804_GCC_7.4.0_Unicode.zip | |
key: ${{ runner.os }}-build-${{ env.cache-name }} | |
- name: Download c3d libraries | |
run: | | |
wget -q -N --user='${{ secrets.C3D_DOWNLOAD_USER }}' --password '${{ secrets.C3D_DOWNLOAD_PASS }}' https://c3d.sd.ascon.ru/C3D_workversion/V2022_WRK/C3D_Kernel/117658/Kernel/Linux_Ubuntu_1804_GCC_7.4.0_Unicode.zip | |
7z x Linux_Ubuntu_1804_GCC_7.4.0_Unicode.zip -o'vendor/c3d/' | |
- name: Setup license key | |
run: | | |
echo '${{ secrets.C3D_LICENSE_KEY_LINUX }}' > "license-key.json" | |
- name: Yarn install | |
run: | | |
yarn install --frozen-lockfile | |
- name: Cache C++ build | |
id: cache-cpp-build | |
uses: actions/cache@v2 | |
env: | |
cache-name: cache-cpp-build | |
with: | |
path: build/Release | |
key: ${{ runner.os }}-build-${{ env.cache-name }}-${{ hashFiles('Linux_Ubuntu_1804_GCC_7.4.0_Unicode.zip', 'generate/api.mjs') }} | |
- name: Codegen C++ and build | |
run: | | |
sudo apt-get -qq install astyle | |
yarn generate | |
yarn run node-gyp configure | |
yarn electron-rebuild | |
- name: Run tests | |
run: | | |
yarn ci | |
- name: Publish canary release | |
env: | |
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
SNAPCRAFT_BUILD_ENVIRONMENT: host | |
run: | | |
sudo apt-get -qq install flatpak elfutils | |
sudo snap install snapcraft --classic | |
DEBUG='electron-forge-maker-snap:*,electron-forge:lifecycle' yarn publish | |
mac-intel: | |
runs-on: macos-latest | |
steps: | |
- uses: actions/checkout@v2 | |
with: | |
fetch-depth: 0 | |
- uses: actions/setup-node@v2 | |
with: | |
node-version: '17.5.0' | |
cache: 'yarn' | |
- name: Cache c3d libraries | |
uses: actions/cache@v2 | |
env: | |
cache-name: cache-c3d-libraries | |
with: | |
path: MacOS_SDK_11_3_AMD64_APPLE_CLANG_12.0.5.zip | |
key: ${{ runner.os }}-build-${{ env.cache-name }} | |
- name: Download c3d libraries | |
run: | | |
brew install wget | |
brew install p7zip | |
wget -q -N --user='${{ secrets.C3D_DOWNLOAD_USER }}' --password '${{ secrets.C3D_DOWNLOAD_PASS }}' https://c3d.sd.ascon.ru/C3D_workversion/V2022_WRK/C3D_Kernel/117658/Kernel/MacOS_SDK_11_3_AMD64_APPLE_CLANG_12.0.5.zip | |
7z x MacOS_SDK_11_3_AMD64_APPLE_CLANG_12.0.5.zip -ovendor/c3d/ | |
- name: Setup license key | |
run: | | |
echo '${{ secrets.C3D_LICENSE_KEY_LINUX }}' > "license-key.json" | |
- name: Yarn install | |
run: | | |
yarn install --frozen-lockfile | |
- name: Cache C++ build | |
id: cache-cpp-build | |
uses: actions/cache@v2 | |
env: | |
cache-name: cache-cpp-build | |
with: | |
path: build/Release | |
key: ${{ runner.os }}-build-${{ env.cache-name }}-${{ hashFiles('MacOS_SDK_11_3_AMD64_APPLE_CLANG_12.0.5.zip', 'generate/api.mjs') }} | |
- name: Codegen C++ and build | |
run: | | |
brew install astyle | |
yarn generate | |
yarn run node-gyp configure | |
yarn electron-rebuild | |
- name: Run tests | |
run: | | |
yarn ci | |
- name: Publish canary release | |
env: | |
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
run: | | |
yarn publish | |
mac-arm: | |
runs-on: macos-latest | |
steps: | |
- uses: actions/checkout@v2 | |
with: | |
fetch-depth: 0 | |
- uses: actions/setup-node@v2 | |
with: | |
node-version: '17.5.0' | |
cache: 'yarn' | |
- name: Cache c3d libraries | |
uses: actions/cache@v2 | |
env: | |
cache-name: cache-c3d-libraries | |
with: | |
path: MacOS_SDK_11_3_ARM64_APPLE_CLANG_12.0.5.zip | |
key: ${{ runner.os }}-build-${{ env.cache-name }} | |
- name: Download c3d libraries | |
run: | | |
brew install wget | |
brew install p7zip | |
wget -q -N --user='${{ secrets.C3D_DOWNLOAD_USER }}' --password '${{ secrets.C3D_DOWNLOAD_PASS }}' https://c3d.sd.ascon.ru/C3D_workversion/V2022_WRK/C3D_Kernel/117658/Kernel/MacOS_SDK_11_3_ARM64_APPLE_CLANG_12.0.5.zip | |
7z x MacOS_SDK_11_3_ARM64_APPLE_CLANG_12.0.5.zip -ovendor/c3d/ | |
- name: Setup license key | |
run: | | |
echo '${{ secrets.C3D_LICENSE_KEY_LINUX }}' > "license-key.json" | |
- name: Yarn install | |
run: | | |
yarn install --frozen-lockfile | |
- name: Cache C++ build | |
id: cache-cpp-build | |
uses: actions/cache@v2 | |
env: | |
cache-name: cache-cpp-build | |
with: | |
path: build/Release | |
key: ${{ runner.os }}-build-${{ env.cache-name }}-${{ hashFiles('MacOS_SDK_11_3_ARM64_APPLE_CLANG_12.0.5.zip', 'generate/api.mjs') }} | |
- name: Codegen C++ and build | |
run: | | |
brew install astyle | |
yarn generate | |
yarn run node-gyp configure --arch=arm64 | |
yarn electron-rebuild --arch=arm64 | |
- name: Publish canary release | |
env: | |
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
run: | | |
yarn publish --arch=arm64 | |
increment-version: | |
needs: [windows, mac-arm, mac-intel, linux] | |
runs-on: macos-latest | |
steps: | |
- uses: actions/checkout@v2 | |
with: | |
fetch-depth: 0 | |
- uses: actions/setup-node@v2 | |
with: | |
node-version: '17.5.0' | |
cache: 'yarn' | |
- name: Increment version | |
run: | | |
yarn plugin import version | |
yarn version patch | |
git config user.email "[email protected]" | |
git config user.name "GitHub Action" | |
git commit -am "Update version" | |
git push |