@@ -11,20 +11,19 @@ jobs:
11
11
strategy :
12
12
matrix :
13
13
os : [ubuntu-latest, ubuntu-24.04, ubuntu-22.04, ubuntu-20.04, windows-latest, windows-2022, windows-2019]
14
- arch : [x64, x86]
15
14
include :
16
15
- os : ubuntu-latest
17
16
ostype : linux
18
- install : sudo apt-get update && sudo apt-get install -y libboost-all-dev:i386 clang g++-multilib
17
+ install : sudo apt-get update && sudo apt-get install -y libboost-all-dev clang g++-multilib
19
18
- os : ubuntu-24.04
20
19
ostype : linux
21
- install : sudo apt-get update && sudo apt-get install -y libboost-all-dev:i386 clang g++-multilib
20
+ install : sudo apt-get update && sudo apt-get install -y libboost-all-dev clang g++-multilib
22
21
- os : ubuntu-22.04
23
22
ostype : linux
24
- install : sudo apt-get update && sudo apt-get install -y libboost-all-dev:i386 clang g++-multilib
23
+ install : sudo apt-get update && sudo apt-get install -y libboost-all-dev clang g++-multilib
25
24
- os : ubuntu-20.04
26
25
ostype : linux
27
- install : sudo apt-get update && sudo apt-get install -y libboost-all-dev:i386 clang g++-multilib
26
+ install : sudo apt-get update && sudo apt-get install -y libboost-all-dev clang g++-multilib
28
27
- os : windows-latest
29
28
ostype : windows
30
29
install : |
@@ -56,21 +55,13 @@ jobs:
56
55
run : ${{ matrix.install }}
57
56
58
57
- name : Build - Windows (x64)
59
- if : matrix.ostype == 'windows' && matrix.arch == 'x64'
58
+ if : matrix.ostype == 'windows'
60
59
run : clang++ -o cmr_cache.exe main.cpp -I./vendor/ -I./boost/ -L./boost/lib -llibboost_system-vc143-mt-x64-1_85 -std=c++17
61
60
62
- - name : Build - Windows (x86)
63
- if : matrix.ostype == 'windows' && matrix.arch == 'x86'
64
- run : clang++ -o cmr_cache.exe main.cpp -I./vendor/ -I./boost/ -L./boost/lib -llibboost_system-vc143-mt-x32-1_85 -std=c++17 -m32
65
-
66
61
- name : Build - Linux (x64)
67
- if : matrix.ostype != 'windows' && matrix.arch == 'x64'
62
+ if : matrix.ostype != 'windows'
68
63
run : clang++ -o cmr_cache main.cpp -I./vendor/ -I/usr/include/boost -L/usr/lib/x86_64-linux-gnu -lboost_system -lpthread -std=c++17
69
64
70
- - name : Build - Linux (x86)
71
- if : matrix.ostype != 'windows' && matrix.arch == 'x86'
72
- run : clang++ -o cmr_cache main.cpp -I./vendor/ -I/usr/include/boost -L/usr/lib/i386-linux-gnu -lboost_system -lpthread -std=c++17 -m32
73
-
74
65
- name : Get the tag
75
66
run : echo "GITHUB_REF=${{ github.ref }}"
76
67
93
84
cp cmr_cache.exe release/
94
85
cp -r config/ release/
95
86
cp -r data/ release/
96
- tar -czf cmr_cache_${{ matrix.os }}_${{ matrix.arch }} .tar.gz release
87
+ tar -czf cmr_cache_${{ matrix.os }}_x64 .tar.gz release
97
88
98
89
- name : Create Release Archive - Others OS
99
90
if : matrix.ostype != 'windows'
@@ -102,14 +93,14 @@ jobs:
102
93
cp cmr_cache release/
103
94
cp -r config/ release/
104
95
cp -r data/ release/
105
- tar -czf cmr_cache_${{ matrix.os }}_${{ matrix.arch }} .tar.gz release
96
+ tar -czf cmr_cache_${{ matrix.os }}_x64 .tar.gz release
106
97
107
98
- name : Upload Release Asset
108
99
uses : actions/upload-release-asset@v1
109
100
with :
110
101
upload_url : ${{ steps.create_release.outputs.upload_url }}
111
- asset_path : cmr_cache_${{ matrix.os }}_${{ matrix.arch }} .tar.gz
112
- asset_name : cmr_cache_${{ matrix.os }}_${{ matrix.arch }} .tar.gz
102
+ asset_path : cmr_cache_${{ matrix.os }}_x64 .tar.gz
103
+ asset_name : cmr_cache_${{ matrix.os }}_x64 .tar.gz
113
104
asset_content_type : application/gzip
114
105
env :
115
106
GITHUB_TOKEN : ${{ secrets.GITHUB_TOKEN }}
0 commit comments