66 - 2*.*.*
77name : Build binaries
88env :
9- DEFAULT_TAG : 23 .0.999
9+ DEFAULT_TAG : 24 .0.999
1010 AWS_DEFAULT_REGION : eu-west-1
1111jobs :
1212 build :
@@ -18,10 +18,10 @@ jobs:
1818 os : [macos-11, ubuntu-20.04, windows-latest]
1919 runs-on : ${{ matrix.os }}
2020 steps :
21- - name : Setup Python 3.8
21+ - name : Setup Python
2222 uses : actions/setup-python@v4
2323 with :
24- python-version : ' 3.8 '
24+ python-version : ' 3.10 '
2525 - name : Initialize TAG and git autocrlf
2626 shell : bash
2727 run : |
@@ -31,15 +31,19 @@ jobs:
3131 else
3232 echo "TAG=$DEFAULT_TAG" >> $GITHUB_ENV
3333 fi
34+ - name : Force Alire use preinstalled MSYS2
35+ shell : bash
36+ if : ${{ runner.os == 'Windows' }}
37+ run : |
38+ mkdir -p ~/.config/alire
39+ echo '[msys2]' >> ~/.config/alire/config.toml
40+ echo 'install_dir = "C:\\msys64"' >> ~/.config/alire/config.toml
3441 - name : Install iconv and gmp (Windows only)
42+ run : pacman --noconfirm -S mingw64/mingw-w64-x86_64-libiconv mingw64/mingw-w64-x86_64-gmp
3543 if : ${{ runner.os == 'Windows' }}
36- uses : msys2/setup-msys2@v2
37- with :
38- path-type : inherit
39- update : true
40- install : >-
41- mingw64/mingw-w64-x86_64-libiconv
42- mingw64/mingw-w64-x86_64-gmp
44+ shell : c:\msys64\usr\bin\bash.exe -l -e -o pipefail {0}
45+ env :
46+ MSYSTEM : MINGW64
4347 - name : Get als
4448 uses : actions/checkout@v3
4549 with :
@@ -79,29 +83,22 @@ jobs:
7983 - uses : actions/cache@v3
8084 with :
8185 path : ./cached_gnat
82- key : ${{ runner.os }}-alire-2022
83- restore-keys : ${{ runner.os }}-alire-2022
86+ key : ${{ runner.os }}-alire-2023
87+ restore-keys : ${{ runner.os }}-alire-2023
8488 - name : Get GNAT toolchain with alire
8589 uses : alire-project/setup-alire@v2
8690 with :
87- toolchain : gnat_native^12 gprbuild^22
91+ toolchain : gnat_native^13 gprbuild^22
8892 toolchain_dir : ./cached_gnat
89- - name : Build (Windows)
90- if : ${{ runner.os == 'Windows' }}
91- shell : msys2 {0}
93+ - name : Build
94+ shell : bash
9295 env :
9396 AWS_ACCESS_KEY_ID : ${{secrets.GHA_CACHE_ACCESS_KEY_ID}}
9497 AWS_SECRET_ACCESS_KEY : ${{secrets.GHA_CACHE_SECRET}}
9598 run : |
9699 # This is to avoid locking .sh on win that prevents its updating
97100 cp .github/workflows/build-binaries.sh .github/workflows/build-binaries.sh_
98101 .github/workflows/build-binaries.sh_ "${{ matrix.debug }}" ${{ runner.os }} ${{ env.TAG }}
99- - name : Build (non-Windows)
100- env :
101- AWS_ACCESS_KEY_ID : ${{secrets.GHA_CACHE_ACCESS_KEY_ID}}
102- AWS_SECRET_ACCESS_KEY : ${{secrets.GHA_CACHE_SECRET}}
103- if : ${{ runner.os != 'Windows' }}
104- run : .github/workflows/build-binaries.sh "${{ matrix.debug }}" ${{ runner.os }} ${{ env.TAG }}
105102 - name : Archive ALS binary
106103 if : ${{ github.event_name == 'push' }}
107104 uses : actions/upload-artifact@v3
0 commit comments