forked from unicode-org/icu
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
950ddc2
commit 15cb9aa
Showing
2 changed files
with
178 additions
and
0 deletions.
There are no files selected for viewing
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,89 @@ | ||
name: Release - ICU4C artifacts on macOS/clang/arm64 | ||
|
||
on: | ||
push: | ||
branches: | ||
- 'main' | ||
- 'arm64' | ||
workflow_dispatch: | ||
inputs: | ||
runTests: | ||
description: 'Run the tests.' | ||
type: boolean | ||
default: true | ||
gitReleaseTag: | ||
description: 'Release tag to upload to. Must start with "release-"' | ||
type: string | ||
|
||
env: | ||
RELEASE_FOLDER: '${{ github.workspace }}/releaseDist' | ||
|
||
jobs: | ||
build: | ||
runs-on: macos-latest # Updated in BRS | ||
environment: release-env | ||
|
||
permissions: | ||
contents: write # So that we can upload to release | ||
|
||
steps: | ||
|
||
- name: Install doxygen | ||
run: | | ||
sudo apt-get -y install doxygen | ||
- name: Checkout and setup | ||
uses: actions/checkout@v4 | ||
with: | ||
lfs: true | ||
|
||
- name: Config and build ICU4C proper | ||
run: | | ||
pushd icu4c/source | ||
./runConfigureICU macOS/clang | ||
make -j8 | ||
popd | ||
- name: Run tests | ||
if: ${{ inputs.runTests }} | ||
run: | | ||
pushd icu4c/source | ||
make check | ||
popd | ||
- name: Build release ICU4C | ||
run: | | ||
pushd icu4c/source | ||
make dist | ||
make DESTDIR=${RELEASE_FOLDER}/icu releaseDist | ||
popd | ||
- name: Collect artifacts in one folder | ||
run: | | ||
# Get the OS version in VERSION_ID | ||
source /etc/os-release | ||
# Get the ICU version in artifact_version | ||
source icu4j/releases_tools/shared.sh | ||
# Convert 76.1 to 76_1 | ||
underscore_version=$(echo $artifact_version | sed 's/\./_/g') | ||
pushd ${RELEASE_FOLDER} | ||
tar -czf icu4c-${underscore_version}-macos-14.tgz icu | ||
rm -fr icu | ||
popd | ||
mv icu4c/source/dist/icu4c-76_1-d* ${RELEASE_FOLDER} | ||
mv icu4c/source/dist/icu4c-76_1-src.* ${RELEASE_FOLDER} | ||
- name: Upload build results | ||
uses: actions/upload-artifact@v4.3.6 | ||
with: | ||
name: icu4c-mac-binaries | ||
path: ${{ env.RELEASE_FOLDER }} | ||
retention-days: 3 # TBD if we want to keep them longer | ||
overwrite: true | ||
|
||
- name: Upload to release | ||
if: ${{ inputs.gitReleaseTag && startsWith(inputs.gitReleaseTag, 'release-') }} | ||
run: | | ||
gh release uplo1ad ${{ inputs.gitReleaseTag }} ${RELEASE_FOLDER}/* --clobber --repo=${{ github.repository }} | ||
env: | ||
GH_TOKEN: ${{ github.token }} |
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,89 @@ | ||
name: Release - ICU4C artifacts on Ubuntu/gcc/arm64 | ||
|
||
on: | ||
push: | ||
branches: | ||
- 'main' | ||
- 'arm64' | ||
workflow_dispatch: | ||
inputs: | ||
runTests: | ||
description: 'Run the tests.' | ||
type: boolean | ||
default: true | ||
gitReleaseTag: | ||
description: 'Release tag to upload to. Must start with "release-"' | ||
type: string | ||
|
||
env: | ||
RELEASE_FOLDER: '${{ github.workspace }}/releaseDist' | ||
|
||
jobs: | ||
build: | ||
runs-on: ubuntu-22.04-arm # Updated in BRS | ||
environment: release-env | ||
|
||
permissions: | ||
contents: write # So that we can upload to release | ||
|
||
steps: | ||
|
||
- name: Install doxygen | ||
run: | | ||
sudo apt-get -y install doxygen | ||
- name: Checkout and setup | ||
uses: actions/checkout@v4 | ||
with: | ||
lfs: true | ||
|
||
- name: Config and build ICU4C proper | ||
run: | | ||
pushd icu4c/source | ||
./runConfigureICU Linux/gcc | ||
make -j8 | ||
popd | ||
- name: Run tests | ||
if: ${{ inputs.runTests }} | ||
run: | | ||
pushd icu4c/source | ||
make check | ||
popd | ||
- name: Build release ICU4C | ||
run: | | ||
pushd icu4c/source | ||
make dist | ||
make DESTDIR=${RELEASE_FOLDER}/icu releaseDist | ||
popd | ||
- name: Collect artifacts in one folder | ||
run: | | ||
# Get the OS version in VERSION_ID | ||
source /etc/os-release | ||
# Get the ICU version in artifact_version | ||
source icu4j/releases_tools/shared.sh | ||
# Convert 76.1 to 76_1 | ||
underscore_version=$(echo $artifact_version | sed 's/\./_/g') | ||
pushd ${RELEASE_FOLDER} | ||
tar -czf icu4c-${underscore_version}-Ubuntu${VERSION_ID}-arm64.tgz icu | ||
rm -fr icu | ||
popd | ||
mv icu4c/source/dist/icu4c-77_1-d* ${RELEASE_FOLDER} | ||
mv icu4c/source/dist/icu4c-77_1-src.* ${RELEASE_FOLDER} | ||
- name: Upload build results | ||
uses: actions/upload-artifact@v4.3.6 | ||
with: | ||
name: icu4c-ubuntu-binaries | ||
path: ${{ env.RELEASE_FOLDER }} | ||
retention-days: 3 # TBD if we want to keep them longer | ||
overwrite: true | ||
|
||
- name: Upload to release | ||
if: ${{ inputs.gitReleaseTag && startsWith(inputs.gitReleaseTag, 'release-') }} | ||
run: | | ||
gh release upload ${{ inputs.gitReleaseTag }} ${RELEASE_FOLDER}/* --clobber --repo=${{ github.repository }} | ||
env: | ||
GH_TOKEN: ${{ github.token }} |