Bump version to 2.3-release #112
This file contains hidden or 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 Windows-Linux | |
| on: | |
| push: | |
| branches: [ "main" ] | |
| pull_request: | |
| branches: [ "main" ] | |
| permissions: | |
| contents: read | |
| jobs: | |
| build-windows-release: | |
| runs-on: windows-latest | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - name: Set up Python 3.12 | |
| uses: actions/setup-python@v5 | |
| with: | |
| python-version: "3.12" | |
| - name: Install dependencies | |
| run: | | |
| python -m pip install --upgrade pip | |
| pip install -r requirements.txt | |
| - name: Build script | |
| run: | | |
| ./build.bat --release | |
| - name: Get commit hash | |
| id: vars | |
| run: | | |
| echo "short_sha=$(git rev-parse --short ${{ github.sha }})" >> $GITHUB_OUTPUT | |
| shell: bash | |
| - uses: actions/upload-artifact@v4 | |
| with: | |
| name: mc3ds-tm-windows-x64-urelease-${{ steps.vars.outputs.short_sha }} | |
| path: dist/MC3DS-Texture-Maker/ | |
| build-windows-debug: | |
| runs-on: windows-latest | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - name: Set up Python 3.12 | |
| uses: actions/setup-python@v5 | |
| with: | |
| python-version: "3.12" | |
| - name: Install dependencies | |
| run: | | |
| python -m pip install --upgrade pip | |
| pip install -r requirements.txt | |
| - name: Build script | |
| run: | | |
| ./build.bat --debug | |
| - name: Get commit hash | |
| id: vars | |
| run: | | |
| echo "short_sha=$(git rev-parse --short ${{ github.sha }})" >> $GITHUB_OUTPUT | |
| shell: bash | |
| - uses: actions/upload-artifact@v4 | |
| with: | |
| name: mc3ds-tm-windows-x64-debug-${{ steps.vars.outputs.short_sha }} | |
| path: dist/MC3DS-Texture-Maker/ | |
| build-linux-release: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - name: Set up Python 3.12 | |
| uses: actions/setup-python@v5 | |
| with: | |
| python-version: "3.12" | |
| - name: Install dependencies | |
| run: | | |
| sudo apt install dos2unix | |
| sudo apt install pip | |
| sudo apt install python3-tk | |
| pip install -r requirements.txt | |
| - name: Build script | |
| run: | | |
| dos2unix ./build.sh | |
| chmod +x ./build.sh | |
| ./build.sh --release | |
| - name: Get commit hash | |
| id: vars | |
| run: | | |
| echo "short_sha=$(git rev-parse --short ${{ github.sha }})" >> $GITHUB_OUTPUT | |
| - uses: actions/upload-artifact@v4 | |
| with: | |
| name: mc3ds-tm-linux-x64-urelease-${{ steps.vars.outputs.short_sha }} | |
| path: dist/MC3DS-Texture-Maker | |
| build-linux-debug: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - name: Set up Python 3.12 | |
| uses: actions/setup-python@v5 | |
| with: | |
| python-version: "3.12" | |
| - name: Install dependencies | |
| run: | | |
| sudo apt install dos2unix | |
| sudo apt install pip | |
| sudo apt install python3-tk | |
| pip install -r requirements.txt | |
| - name: Build script | |
| run: | | |
| dos2unix ./build.sh | |
| chmod +x ./build.sh | |
| ./build.sh --debug | |
| - name: Get commit hash | |
| id: vars | |
| run: | | |
| echo "short_sha=$(git rev-parse --short ${{ github.sha }})" >> $GITHUB_OUTPUT | |
| - uses: actions/upload-artifact@v4 | |
| with: | |
| name: mc3ds-tm-linux-x64-debug-${{ steps.vars.outputs.short_sha }} | |
| path: dist/MC3DS-Texture-Maker |