Skip to content

Commit

Permalink
Bump Unity to 2021.3.20f1 and refactor CI pipelines (#274)
Browse files Browse the repository at this point in the history
  • Loading branch information
sailro authored Mar 6, 2023
1 parent 924e526 commit 5afcb00
Show file tree
Hide file tree
Showing 5 changed files with 31 additions and 13 deletions.
13 changes: 13 additions & 0 deletions .github/actions/setvars/action.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
name: 'Set environment variables'
description: 'Configures environment variables for a workflow'
inputs:
varFilePath:
description: 'File path to variable file or directory. Defaults to ./.github/variables/* if none specified and runs against each file in that directory.'
required: false
default: ./.github/variables/*
runs:
using: "composite"
steps:
- run: |
sed "" ${{ inputs.varFilePath }} >> $GITHUB_ENV
shell: bash
2 changes: 2 additions & 0 deletions .github/variables/unity.env
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
UNITY_HASH=577897200b8b
UNITY_FULL_VERSION=2021.3.20f1
11 changes: 6 additions & 5 deletions .github/workflows/ci-linux.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,18 +9,19 @@ on:
branches:
- main
- release/*

env:
UNITY_HASH: 4016570cf34f
UNITY_FULL_VERSION: 2021.3.16f1


jobs:
linux:
runs-on: ubuntu-latest

steps:
- name: Checkout
uses: actions/checkout@v1

- name: Set Environment Variables
uses: ./.github/actions/setvars
with:
varFilePath: ./.github/variables/unity.env

- name: Setup .NET
uses: actions/setup-dotnet@v1
Expand Down
9 changes: 5 additions & 4 deletions .github/workflows/ci-macos.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,10 +10,6 @@ on:
- main
- release/*

env:
UNITY_HASH: 4016570cf34f
UNITY_FULL_VERSION: 2021.3.16f1

jobs:
macos:
runs-on: macos-latest
Expand All @@ -22,6 +18,11 @@ jobs:
- name: Checkout
uses: actions/checkout@v1

- name: Set Environment Variables
uses: ./.github/actions/setvars
with:
varFilePath: ./.github/variables/unity.env

- name: Setup .NET
uses: actions/setup-dotnet@v1
with:
Expand Down
9 changes: 5 additions & 4 deletions .github/workflows/ci-windows.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,10 +10,6 @@ on:
- main
- release/*

env:
UNITY_HASH: 4016570cf34f
UNITY_FULL_VERSION: 2021.3.16f1

jobs:
windows:
runs-on: windows-latest
Expand All @@ -22,6 +18,11 @@ jobs:
- name: Checkout
uses: actions/checkout@v1

- name: Set Environment Variables
uses: ./.github/actions/setvars
with:
varFilePath: ./.github/variables/unity.env

- name: Setup .NET
uses: actions/setup-dotnet@v1
with:
Expand Down

0 comments on commit 5afcb00

Please sign in to comment.