diff options
Diffstat (limited to '.github/workflows')
-rw-r--r-- | .github/workflows/build.yml | 6 | ||||
-rw-r--r-- | .github/workflows/depends.yml | 2 | ||||
-rw-r--r-- | .github/workflows/gitian.yml | 49 |
3 files changed, 53 insertions, 4 deletions
diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 7ebfcd2b1..2cde753bc 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -77,7 +77,7 @@ jobs: CCACHE_TEMPDIR: /tmp/.ccache-temp strategy: matrix: - os: [ubuntu-latest, ubuntu-18.04] + os: [ubuntu-22.04, ubuntu-20.04] steps: - uses: actions/checkout@v1 with: @@ -101,7 +101,7 @@ jobs: ${{env.BUILD_DEFAULT_LINUX}} libwallet-ubuntu: - runs-on: ubuntu-latest + runs-on: ubuntu-20.04 env: CCACHE_TEMPDIR: /tmp/.ccache-temp steps: @@ -129,7 +129,7 @@ jobs: test-ubuntu: needs: build-ubuntu - runs-on: ubuntu-latest + runs-on: ubuntu-20.04 env: CCACHE_TEMPDIR: /tmp/.ccache-temp steps: diff --git a/.github/workflows/depends.yml b/.github/workflows/depends.yml index 57e9e68bb..c05f74f9c 100644 --- a/.github/workflows/depends.yml +++ b/.github/workflows/depends.yml @@ -18,7 +18,7 @@ env: jobs: build-cross: - runs-on: ubuntu-18.04 + runs-on: ubuntu-20.04 env: CCACHE_TEMPDIR: /tmp/.ccache-temp strategy: diff --git a/.github/workflows/gitian.yml b/.github/workflows/gitian.yml new file mode 100644 index 000000000..6506e3d46 --- /dev/null +++ b/.github/workflows/gitian.yml @@ -0,0 +1,49 @@ +name: ci/gh-actions/gitian + +on: + push: + tags: + - '*' + +jobs: + build-gitian: + runs-on: ubuntu-20.04 + strategy: + fail-fast: false + matrix: + operating-system: + - name: "Linux" + option: "l" + - name: "Windows" + option: "w" + - name: "Android" + option: "a" + - name: "FreeBSD" + option: "f" + - name: "macOS" + option: "m" + name: ${{ matrix.operating-system.name }} + steps: + - name: prepare + run: | + sudo apt update + curl -O https://raw.githubusercontent.com/monero-project/monero/${{ github.ref_name }}/contrib/gitian/gitian-build.py + chmod +x gitian-build.py + - name: setup + run: | + ./gitian-build.py --setup --docker github-actions ${{ github.ref_name }} + - name: build + run: | + ./gitian-build.py --docker --detach-sign --no-commit --build -j 3 -o ${{ matrix.operating-system.option }} github-actions ${{ github.ref_name }} + - name: post build + run: | + cd out/${{ github.ref_name }} + shasum -a256 * + echo \`\`\` >> $GITHUB_STEP_SUMMARY + shasum -a256 * >> $GITHUB_STEP_SUMMARY + echo \`\`\` >> $GITHUB_STEP_SUMMARY + - uses: actions/upload-artifact@v3.1.0 + with: + name: ${{ matrix.operating-system.name }} + path: | + out/${{ github.ref_name }}/* |