|
9 | 9 | jobs:
|
10 | 10 | Release:
|
11 | 11 | name: Release
|
12 |
| - runs-on: ubuntu-18.04 |
| 12 | + runs-on: ubuntu-20.04 |
13 | 13 | permissions:
|
14 | 14 | contents: write
|
15 | 15 | outputs:
|
@@ -49,28 +49,20 @@ jobs:
|
49 | 49 | Kani Rust verifier release bundle version ${{ env.TAG_VERSION }}.
|
50 | 50 | draft: true
|
51 | 51 |
|
52 |
| - Upload: |
53 |
| - name: Upload |
| 52 | + MacOs-Bundle: |
| 53 | + name: MacOs-Bundle |
54 | 54 | needs: Release
|
55 |
| - runs-on: ${{ matrix.os }} |
| 55 | + runs-on: macos-11 |
56 | 56 | permissions:
|
57 | 57 | contents: write
|
58 |
| - strategy: |
59 |
| - matrix: |
60 |
| - os: [macos-11, ubuntu-18.04] |
61 |
| - include: |
62 |
| - - os: macos-11 |
63 |
| - target: x86_64-apple-darwin |
64 |
| - - os: ubuntu-18.04 |
65 |
| - target: x86_64-unknown-linux-gnu |
66 | 58 | steps:
|
67 | 59 | - name: Checkout code
|
68 | 60 | uses: actions/checkout@v3
|
69 | 61 |
|
70 | 62 | - name: Setup Kani Dependencies
|
71 | 63 | uses: ./.github/actions/setup
|
72 | 64 | with:
|
73 |
| - os: ${{ matrix.os }} |
| 65 | + os: macos-11 |
74 | 66 |
|
75 | 67 | - name: Build release bundle
|
76 | 68 | run: |
|
|
82 | 74 | GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
83 | 75 | with:
|
84 | 76 | upload_url: ${{ needs.Release.outputs.upload_url }}
|
85 |
| - asset_path: kani-${{ needs.Release.outputs.version }}-${{ matrix.target }}.tar.gz |
86 |
| - asset_name: kani-${{ needs.Release.outputs.version }}-${{ matrix.target }}.tar.gz |
| 77 | + asset_path: kani-${{ needs.Release.outputs.version }}-x86_64-apple-darwin.tar.gz |
| 78 | + asset_name: kani-${{ needs.Release.outputs.version }}-x86_64-apple-darwin.tar.gz |
| 79 | + asset_content_type: application/gzip |
| 80 | + |
| 81 | + Linux-Bundle: |
| 82 | + name: Linux-Bundle |
| 83 | + needs: Release |
| 84 | + runs-on: ubuntu-20.04 |
| 85 | + container: |
| 86 | + image: ubuntu:18.04 |
| 87 | + permissions: |
| 88 | + contents: write |
| 89 | + steps: |
| 90 | + # This is required before checkout because the container does not |
| 91 | + # have Git installed, so cannot run checkout action. The checkout |
| 92 | + # action requires Git >=2.18, so use the Git maintainers' PPA. |
| 93 | + - name: Install system dependencies |
| 94 | + run: | |
| 95 | + apt-get update |
| 96 | + apt-get install -y software-properties-common apt-utils |
| 97 | + add-apt-repository ppa:git-core/ppa |
| 98 | + apt-get update |
| 99 | + apt-get install -y \ |
| 100 | + build-essential bash-completion curl lsb-release sudo g++ gcc flex \ |
| 101 | + bison make patch git |
| 102 | + curl --proto '=https' --tlsv1.2 --retry 10 --retry-connrefused -fsSL \ |
| 103 | + https://get.docker.com -o /tmp/install-docker.sh |
| 104 | + bash /tmp/install-docker.sh |
| 105 | +
|
| 106 | + - name: Checkout code |
| 107 | + uses: actions/checkout@v3 |
| 108 | + |
| 109 | + - name: Setup Kani Dependencies |
| 110 | + uses: ./.github/actions/setup |
| 111 | + with: |
| 112 | + os: ubuntu-18.04 |
| 113 | + |
| 114 | + - name: Build release bundle |
| 115 | + run: | |
| 116 | + PATH=/github/home/.cargo/bin:$PATH cargo bundle |
| 117 | +
|
| 118 | + - name: Upload artifact |
| 119 | + uses: actions/upload-release-asset@v1 |
| 120 | + env: |
| 121 | + GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} |
| 122 | + with: |
| 123 | + upload_url: ${{ needs.Release.outputs.upload_url }} |
| 124 | + asset_path: kani-${{ needs.Release.outputs.version }}-x86_64-unknown-linux-gnu.tar.gz |
| 125 | + asset_name: kani-${{ needs.Release.outputs.version }}-x86_64-unknown-linux-gnu.tar.gz |
87 | 126 | asset_content_type: application/gzip
|
88 | 127 |
|
89 | 128 | Package-Docker:
|
|
0 commit comments