Skip to content

Commit e9e1636

Browse files
committed
release: use windows-2022, collapse Linux packaging into matrix
1 parent 021440f commit e9e1636

1 file changed

Lines changed: 12 additions & 46 deletions

File tree

.github/workflows/release.yml

Lines changed: 12 additions & 46 deletions
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@ jobs:
4141

4242
package-windows:
4343
needs: [build-and-test, release]
44-
runs-on: windows-latest
44+
runs-on: windows-2022
4545

4646
strategy:
4747
matrix:
@@ -117,6 +117,14 @@ jobs:
117117
needs: [build-and-test, release]
118118
runs-on: ubuntu-latest
119119

120+
strategy:
121+
matrix:
122+
include:
123+
- artifact: linux-x64-binaries
124+
suffix: linux-x64
125+
- artifact: linux-arm64-binaries
126+
suffix: linux-arm64
127+
120128
steps:
121129
- uses: actions/checkout@v6
122130
with:
@@ -125,7 +133,7 @@ jobs:
125133
- name: Download Linux artifacts
126134
uses: actions/download-artifact@v8
127135
with:
128-
name: linux-x64-binaries
136+
name: ${{ matrix.artifact }}
129137
path: artifacts
130138

131139
- name: Package Linux build
@@ -147,52 +155,10 @@ jobs:
147155
EOF
148156
149157
cd "$packageDir"
150-
tar -czf "../firebird-odbc-driver-${version}-linux-x64.tar.gz" *
151-
152-
- name: Upload release assets
153-
uses: softprops/action-gh-release@v2
154-
with:
155-
files: |
156-
firebird-odbc-driver-${{ needs.release.outputs.version }}-linux-x64.tar.gz
157-
158-
package-linux-arm64:
159-
needs: [build-and-test, release]
160-
runs-on: ubuntu-latest
161-
162-
steps:
163-
- uses: actions/checkout@v6
164-
with:
165-
sparse-checkout: README.md
166-
167-
- name: Download Linux arm64 artifacts
168-
uses: actions/download-artifact@v8
169-
with:
170-
name: linux-arm64-binaries
171-
path: artifacts
172-
173-
- name: Package Linux arm64 build
174-
run: |
175-
version="${{ needs.release.outputs.version }}"
176-
packageDir="package-linux-arm64"
177-
mkdir -p "$packageDir"
178-
179-
cp artifacts/libOdbcFb.so "$packageDir/"
180-
181-
cp README.md "$packageDir/" 2>/dev/null || true
182-
183-
cat > "$packageDir/odbcinst.ini.sample" << 'EOF'
184-
[Firebird ODBC Driver]
185-
Description = Firebird ODBC Driver
186-
Driver = /usr/local/lib/odbc/libOdbcFb.so
187-
Setup = /usr/local/lib/odbc/libOdbcFb.so
188-
FileUsage = 1
189-
EOF
190-
191-
cd "$packageDir"
192-
tar -czf "../firebird-odbc-driver-${version}-linux-arm64.tar.gz" *
158+
tar -czf "../firebird-odbc-driver-${version}-${{ matrix.suffix }}.tar.gz" *
193159
194160
- name: Upload release assets
195161
uses: softprops/action-gh-release@v2
196162
with:
197163
files: |
198-
firebird-odbc-driver-${{ needs.release.outputs.version }}-linux-arm64.tar.gz
164+
firebird-odbc-driver-${{ needs.release.outputs.version }}-${{ matrix.suffix }}.tar.gz

0 commit comments

Comments
 (0)