diff --git a/.github/workflows/github-action.yml b/.github/workflows/github-action.yml index 892172585..43329bcf2 100644 --- a/.github/workflows/github-action.yml +++ b/.github/workflows/github-action.yml @@ -12,6 +12,8 @@ env: jobs: build: runs-on: ${{ matrix.os }} + env: + XCODE_VERSION: '15.3.0' strategy: matrix: os: [ubuntu-20.04, macos-latest] @@ -26,11 +28,11 @@ jobs: if: runner.os == 'macOS' uses: maxim-lobanov/setup-xcode@v1 with: - xcode-version: 14.3.1 + xcode-version: ${{ env.XCODE_VERSION }} - name: mac-setup-workaround if: runner.os == 'macOS' run: | - ln -sfn /Applications/Xcode_14.2.0.app /Applications/Xcode.app + ln -sfn /Applications/Xcode_${{ env.XCODE_VERSION }}.app /Applications/Xcode.app - name: ubuntu-setup if: runner.os == 'Linux' diff --git a/.github/workflows/svf-lib_publish.yml b/.github/workflows/svf-lib_publish.yml index 35687cec2..b94843431 100644 --- a/.github/workflows/svf-lib_publish.yml +++ b/.github/workflows/svf-lib_publish.yml @@ -15,6 +15,8 @@ jobs: publish: if: github.repository == 'SVF-tools/SVF' runs-on: ${{ matrix.os }} + env: + XCODE_VERSION: '15.3.0' # Define Xcode version here to reuse it strategy: matrix: os: [ubuntu-20.04, macos-latest] @@ -26,11 +28,11 @@ jobs: if: runner.os == 'macOS' uses: maxim-lobanov/setup-xcode@v1 with: - xcode-version: 14.3.1 + xcode-version: ${{ env.XCODE_VERSION }} - name: mac-setup-workaround if: runner.os == 'macOS' run: | - ln -sfn /Applications/Xcode_14.2.0.app /Applications/Xcode.app + ln -sfn /Applications/Xcode_${{ env.XCODE_VERSION }}.app /Applications/Xcode.app brew install astyle - name: ubuntu-setup if: runner.os == 'Linux' @@ -131,9 +133,9 @@ jobs: cd $GITHUB_WORKSPACE # publish svf - - uses: actions/setup-node@v2 + - uses: actions/setup-node@v3 with: - node-version: 12 + node-version: 18 registry-url: https://registry.npmjs.org/ - name: publish-svf if: |