-
-
Notifications
You must be signed in to change notification settings - Fork 26
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Updated workflow file to be targetted against the stable version of 4.2
- Loading branch information
Showing
1 changed file
with
13 additions
and
7 deletions.
There are no files selected for viewing
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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -6,18 +6,24 @@ on: | |
branches: [ "main" ] | ||
pull_request: | ||
branches: [ "main" ] | ||
|
||
jobs: | ||
build: | ||
runs-on: ubuntu-latest | ||
env: | ||
BLENDER_VERSION: blender-4.2.0-beta+v42.d19d23e91f65-linux.x86_64-release | ||
BLENDER_VERSION: blender-4.2.0-linux-x64 | ||
ADDON_NAME: io_scene_psk_psa | ||
steps: | ||
- uses: actions/checkout@v3 | ||
- uses: SebRollen/[email protected] | ||
id: read_manifest | ||
with: | ||
file: '${{ env.ADDON_NAME }}/blender_manifest.toml' | ||
field: 'version' | ||
- name: Set derived environment variables | ||
run: | | ||
echo "BLENDER_FILENAME=${{ env.BLENDER_VERSION }}.tar.xz" >> $GITHUB_ENV | ||
echo "BLENDER_URL=https://cdn.builder.blender.org/download/daily/${{ env.BLENDER_VERSION }}.tar.xz" >> $GITHUB_ENV | ||
echo "BLENDER_URL=https://mirrors.iu13.net/blender/release/Blender4.2/${{ env.BLENDER_VERSION }}.tar.xz" >> $GITHUB_ENV | ||
- name: Install Blender Dependencies | ||
run: | | ||
sudo apt-get install libxxf86vm-dev -y | ||
|
@@ -35,14 +41,14 @@ jobs: | |
echo "${{ github.workspace }}/${{ env.BLENDER_VERSION }}/" >> $GITHUB_PATH | ||
- name: Build extension | ||
run: | | ||
pushd ./io_scene_psk_psa | ||
pushd ./${{ env.ADDON_NAME }} | ||
blender --command extension build | ||
mkdir artifact | ||
unzip -q io_scene_psk_psa.zip -d ./artifact | ||
unzip -q ${{ env.ADDON_NAME }}-${{ steps.read_manifest.outputs.value }}.zip -d ./artifact | ||
popd | ||
- name: Archive addon | ||
uses: actions/upload-artifact@v4 | ||
with: | ||
name: io_scene_psk_psa-${{ github.ref_name }}-${{ github.sha }} | ||
name: ${{ env.ADDON_NAME }}-${{ github.ref_name }}-${{ github.sha }} | ||
path: | | ||
./io_scene_psk_psa/artifact/* | ||
./${{ env.ADDON_NAME }}/artifact/* |