Skip to content

Commit 2ea54b3

Browse files
committed
Use x86_64 and aarch64.
1 parent 86fa67f commit 2ea54b3

1 file changed

Lines changed: 12 additions & 13 deletions

File tree

.github/workflows/ci.yml

Lines changed: 12 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -26,9 +26,11 @@ jobs:
2626
run: |
2727
echo "QUANTLIB_VERSION=$(cat quantlib-version)" >> $GITHUB_ENV
2828
if [ "${{ matrix.os }}" = 'ubuntu-24.04' ]; then
29-
echo "ARCH=amd64" >> $GITHUB_ENV
29+
echo "DOCKER_ARCH=amd64" >> $GITHUB_ENV
30+
echo "RELEASE_ARCH=x86_64" >> $GITHUB_ENV
3031
elif [ "${{ matrix.os }}" = 'ubuntu-24.04-arm' ]; then
31-
echo "ARCH=arm64" >> $GITHUB_ENV
32+
echo "DOCKER_ARCH=arm64" >> $GITHUB_ENV
33+
echo "RELEASE_ARCH=aarch64" >> $GITHUB_ENV
3234
fi
3335
3436
- name: Set up Docker Buildx
@@ -41,15 +43,15 @@ jobs:
4143
file: ./Dockerfile
4244
push: false
4345
target: export
44-
platforms: linux/${{ env.ARCH }}
46+
platforms: linux/${{ env.DOCKER_ARCH }}
4547
outputs: type=local,dest=./output
4648

4749
- name: Copy artifacts
4850
if: github.event_name == 'push'
4951
run: |
5052
mkdir -p artifacts
51-
cp "output/build/quantlib-${{ env.QUANTLIB_VERSION }}.jar" "artifacts/${{ env.ARCH }}-quantlib-${{ env.QUANTLIB_VERSION }}.jar"
52-
cp "output/build/quantlib-${{ env.QUANTLIB_VERSION }}.pom" "artifacts/${{ env.ARCH }}-quantlib-${{ env.QUANTLIB_VERSION }}.pom"
53+
cp "output/build/quantlib-${{ env.QUANTLIB_VERSION }}.jar" "artifacts/${{ env.RELEASE_ARCH }}-quantlib-${{ env.QUANTLIB_VERSION }}.jar"
54+
cp "output/build/quantlib-${{ env.QUANTLIB_VERSION }}.pom" "artifacts/${{ env.RELEASE_ARCH }}-quantlib-${{ env.QUANTLIB_VERSION }}.pom"
5355
5456
- name: Attest artifacts
5557
if: github.event_name == 'push'
@@ -61,7 +63,7 @@ jobs:
6163
if: github.event_name == 'push'
6264
uses: actions/upload-artifact@v6
6365
with:
64-
name: ${{ env.ARCH }}-quantlib-${{ env.QUANTLIB_VERSION }}
66+
name: ${{ env.RELEASE_ARCH }}-quantlib-${{ env.QUANTLIB_VERSION }}
6567
path: artifacts/
6668
if-no-files-found: error
6769
retention-days: 2
@@ -77,21 +79,18 @@ jobs:
7779
run: |
7880
echo "QUANTLIB_VERSION=$(cat quantlib-version)" >> $GITHUB_ENV
7981
80-
- name: Download amd64 artifacts
82+
- name: Download x86_64 artifacts
8183
uses: actions/download-artifact@v8
8284
with:
83-
name: amd64-quantlib-${{ env.QUANTLIB_VERSION }}
85+
name: x86_64-quantlib-${{ env.QUANTLIB_VERSION }}
8486
path: artifacts/
8587

86-
- name: Download arm64 artifacts
88+
- name: Download aarch64 artifacts
8789
uses: actions/download-artifact@v8
8890
with:
89-
name: arm64-quantlib-${{ env.QUANTLIB_VERSION }}
91+
name: aarch64-quantlib-${{ env.QUANTLIB_VERSION }}
9092
path: artifacts/
9193

92-
- name: List artifacts
93-
run: ls -R artifacts
94-
9594
- name: Create Release
9695
uses: softprops/action-gh-release@v2
9796
with:

0 commit comments

Comments
 (0)