-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'release/sameold-0.4.0'
- Loading branch information
Showing
32 changed files
with
2,204 additions
and
1,300 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 |
---|---|---|
|
@@ -2,7 +2,7 @@ name: Release | |
|
||
on: | ||
push: | ||
branches: [ "release/**", "develop" ] | ||
branches: [ "release/**", "develop", "staging/**" ] | ||
tags: [ "samedec-*" ] | ||
|
||
permissions: | ||
|
@@ -60,11 +60,15 @@ jobs: | |
|
||
needs: vendor_sources | ||
|
||
# qemu cross-compiling is very slow | ||
timeout-minutes: 60 | ||
|
||
env: | ||
# See <https://hub.docker.com/_/rust> for list of tags | ||
BUILD_RUST_TAG: 1.67.0 | ||
BUILD_RUST_TAG: 1.70.0 | ||
BUILD_OS_GNU: slim-buster | ||
BUILD_OS_MUSL: alpine | ||
CARGO_REGISTRIES_CRATES_IO_PROTOCOL: sparse | ||
|
||
strategy: | ||
matrix: | ||
|
@@ -102,19 +106,18 @@ jobs: | |
enableCrossOsArchive: true | ||
fail-on-cache-miss: true | ||
|
||
- name: Workaround for https://github.com/rust-lang/cargo/issues/8719 | ||
run: | | ||
sudo mkdir -p /var/lib/docker | ||
sudo mount -t tmpfs -o size=10G none /var/lib/docker | ||
sudo systemctl restart docker | ||
- name: Set swap space | ||
uses: pierotofy/[email protected] | ||
with: | ||
swap-size-gb: 10 | ||
|
||
- name: Set up QEMU | ||
uses: docker/setup-qemu-action@v2 | ||
uses: docker/setup-qemu-action@v3 | ||
with: | ||
platforms: all | ||
|
||
- name: Set up Docker Buildx | ||
uses: docker/setup-buildx-action@v1 | ||
uses: docker/setup-buildx-action@v3 | ||
|
||
- name: Prepare output directory | ||
run: | | ||
|
@@ -126,7 +129,7 @@ jobs: | |
# install/bin/samedec-x86_64-unknown-linux-gnu | ||
# and the like. | ||
- name: Build | ||
uses: docker/build-push-action@v3 | ||
uses: docker/build-push-action@v5 | ||
with: | ||
context: . | ||
push: false | ||
|
@@ -227,17 +230,9 @@ jobs: | |
- name: Run integration tests | ||
shell: bash | ||
run: | | ||
set -e; | ||
"$samedec_exe" --version | ||
for file in $(basename -s .bin sample/*.s16le.bin); do | ||
printf '[%s]\n' "$file"; | ||
"$samedec_exe" -r 22050 <"sample/$file.bin" | tee result; | ||
cmp result "sample/$file.txt" || { | ||
echo "FAIL!"; | ||
exit 1; | ||
}; | ||
echo "PASS"; | ||
done | ||
pushd sample && | ||
./test.sh && | ||
popd | ||
- name: Copy artifact | ||
shell: bash | ||
|
@@ -313,17 +308,9 @@ jobs: | |
- name: Run integration tests | ||
run: | | ||
set -e; | ||
"$samedec_exe" --version | ||
for file in $(basename -s .bin sample/*.s16le.bin); do | ||
printf '[%s]\n' "$file"; | ||
"$samedec_exe" -r 22050 <"sample/$file.bin" | tee result; | ||
cmp result "sample/$file.txt" || { | ||
echo "FAIL!"; | ||
exit 1; | ||
}; | ||
echo "PASS"; | ||
done | ||
pushd sample && | ||
./test.sh && | ||
popd | ||
- name: Copy artifact | ||
run: | | ||
|
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
Oops, something went wrong.